package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.*;
import java.sql.*;
import org.apache.log4j.Category;
import jp.co.sint.database.*;
import jp.co.sint.basic.*;
import jp.co.sint.tools.*;
import jp.co.sint.config.*;
import jp.co.sint.beans.front.*;
import jp.co.sint.beans.mobile.au.*;
import jp.co.sint.bscvsmdk.*;
import jp.co.sint.tools.*;

public class a_buy_detail_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(4);
    _jspx_includes.add("/mobile/au/other/../include/a_header_inc.jsp");
    _jspx_includes.add("/include/mobile_filter.jsp");
    _jspx_includes.add("/mobile/au/other/../include/a_nav_inc.jsp");
    _jspx_includes.add("/mobile/au/other/../include/a_footer_inc.jsp");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_response_sendRedirect;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_sicurrency_value_nobody;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_isFalse_value;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_siiterator_type_id_collection;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_isTrue_value;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_siquantity_value_nobody;

  public a_buy_detail_jsp() {
    _jspx_tagPool_response_sendRedirect = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_sicurrency_value_nobody = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_isFalse_value = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siiterator_type_id_collection = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_isTrue_value = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siquantity_value_nobody = new org.apache.jasper.runtime.TagHandlerPool();
  }

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

  public void _jspDestroy() {
    _jspx_tagPool_response_sendRedirect.release();
    _jspx_tagPool_webshop_sicurrency_value_nobody.release();
    _jspx_tagPool_webshop_isFalse_value.release();
    _jspx_tagPool_webshop_siiterator_type_id_collection.release();
    _jspx_tagPool_webshop_isTrue_value.release();
    _jspx_tagPool_webshop_siquantity_value_nobody.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;

    jp.co.sint.beans.mallmgr.UIRegOrderDetail _jspx_detailID_1 = null;

    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=MS932");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"../util/a_error.jsp", true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : a_buy_detail.jsp,v 1.0 2004/02/26 Exp $
 * @author      : asakura
 * @Description : 購買履歴詳細
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * asakura        2004/02/26  Original
 * hong M.J       2006/12/06  修正
 */

      out.write("\r\n");
/**タグのセクション*/
      out.write("\r\n");
      out.write("\r\n");
/**エラー遷移先の定義のセクション*/
      out.write("\r\n");
      out.write("\r\n");
/**クラスのインポートのセクション*/
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
//7.2.0 ST0300 追加 
      out.write("\r\n");

//ログ用のインスタンスの生成(common)
//Category log=Category.getInstance(SIConfig.SILOG4J_WEBSHOP_CATEGORY_NAME);
//本画面に関わるbeansのデータ
UIABuyDetail buyDetailID=(UIABuyDetail)session.getAttribute(SIConfig.SISESSION_A_BUY_DETAIL_NAME);
if (buyDetailID==null)buyDetailID=new UIABuyDetail();

//データベースへのコネンクション(common)
SIDatabaseConnection databaseConnection=new SIDatabaseConnection();try{
Connection connection=databaseConnection.getConnection();

//ご注文詳細
Collection orderDeliveryColl=buyDetailID.getCollection(connection);
Collection orderDetailColl=new ArrayList();

String sumOfA="0";//商品の購入価格の合計(税込み)
String sumOfB="0";//送料合計(税込み)
String sumOfC="0";//手数料合計(税込み)
String sumOfD="0";//小計(税込み)
String sumOfE="0";//ﾎﾟｲﾝﾄ使用値
String sumOfF="0";//支払額
String sumOfG="0";//値引き額
//EDBTG003-00 nagayoshi add start
String sumOfH=buyDetailID.getSumOfSetDiscount();//セット値引き額
//EDBTG003-00 nagayoshi add end
sumOfC=buyDetailID.getFeeIncTax();//手数料
sumOfG=buyDetailID.getSumOfDiscount();//値引き
if (SIConfig.NO_DISCOUNT_DISP_USERS!=null&&SIConfig.NO_DISCOUNT_DISP_USERS.length>0) {
  for (int i=0;i<SIConfig.NO_DISCOUNT_DISP_USERS.length;i++) {
    if (buyDetailID.getCustCode().equals(SIConfig.NO_DISCOUNT_DISP_USERS[i])) sumOfG="0";
  }
}
String buyhistSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.au.customer.hist");
String cmdtyDetailSrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.au.cmdty.detail");
//各ｻｲﾄの設定(common)
String loginSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.au.login");
String custReg = "?a=" + SIConfig.SIACTION_LOGIN;
String webshopSite=SIHTMLUtil.getRootPath(request);

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<body>\r\n");
      out.write("<form action=\"");
      out.print(loginSrvSite);
      out.write("\" method=\"post\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
if (!SIURLMap.isMobile(request)) {
      out.write("\r\n");
      /* ----  response:sendRedirect ---- */
      org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_0 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
      _jspx_th_response_sendRedirect_0.setPageContext(pageContext);
      _jspx_th_response_sendRedirect_0.setParent(null);
      int _jspx_eval_response_sendRedirect_0 = _jspx_th_response_sendRedirect_0.doStartTag();
      if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_response_sendRedirect_0.setBodyContent(_bc);
          _jspx_th_response_sendRedirect_0.doInitBody();
        }
        do {
          out.print(SIURLMap.getUrl(request,"webshop.servlet.front.main"));
          int evalDoAfterBody = _jspx_th_response_sendRedirect_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_response_sendRedirect_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_0);
      out.write("\r\n");
}else if (SIURLMap.isAU2(request)) {
      out.write("\r\n");
      if (_jspx_meth_response_sendRedirect_1(pageContext))
        return;
      out.write("\r\n");
}
      out.write("\r\n");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/mobile/bglogo.gif\" width=\"100%\" alt=\"BEAUTY GARAGE\">");
      out.write("<br>");
      out.write("<font size=\"1\">&nbsp;");
      out.write("</font>");
      out.write("<br>\r\n");

response.setHeader("Expires", "-1");
response.addHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("max-age", 0);

      out.write("\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"gainsboro\">\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<br>");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr>");
      out.write("<td BGCOLOR=\"cyan\">");
      out.write("<div align=\"center\">");
      out.write("<img localsrc=\"103\"/>&nbsp;");
      out.write("<font size=\"2\" color=\"black\">ご注文履歴の明細");
      out.write("</font>&nbsp;");
      out.write("<img localsrc=\"103\"/>");
      out.write("</div>");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<br>");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<br>\r\n");
      out.write("<a href=\"");
      out.print(buyhistSrvSite+"?a="+SIConfig.SIACTION_BACK+"&pageNumberTxt="+buyDetailID.getPageNumberTxt());
      out.write("\">");
      out.write("<font size=\"2\" color=\"blue\">△一覧に戻る");
      out.write("</font>");
      out.write("</a>\r\n");
      out.write("<br>");
      out.write("<hr size=\"1\" color=\"blue\">");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;ご注文番号:");
      out.print(buyDetailID.getOrderCode());
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;お支払方法:");
      out.print(SIHTMLUtil.HTMLEncode(buyDetailID.getPayMethodName()));
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;手数料:");
      /* ----  webshop:sicurrency ---- */
      jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_0 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
      _jspx_th_webshop_sicurrency_0.setPageContext(pageContext);
      _jspx_th_webshop_sicurrency_0.setParent(null);
      _jspx_th_webshop_sicurrency_0.setValue(SIHTMLUtil.HTMLEncode(sumOfC));
      int _jspx_eval_webshop_sicurrency_0 = _jspx_th_webshop_sicurrency_0.doStartTag();
      if (_jspx_th_webshop_sicurrency_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_0);
      out.print(SIHTMLUtil.HTMLEncode(buyDetailID.getFeeTaxName()));
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;入金日:");
      /* ----  webshop:isFalse ---- */
      jp.co.sint.taglib.SIIsFalseTag _jspx_th_webshop_isFalse_0 = (jp.co.sint.taglib.SIIsFalseTag) _jspx_tagPool_webshop_isFalse_value.get(jp.co.sint.taglib.SIIsFalseTag.class);
      _jspx_th_webshop_isFalse_0.setPageContext(pageContext);
      _jspx_th_webshop_isFalse_0.setParent(null);
      _jspx_th_webshop_isFalse_0.setValue(buyDetailID.getPaymentFlg().equals("3"));
      int _jspx_eval_webshop_isFalse_0 = _jspx_th_webshop_isFalse_0.doStartTag();
      if (_jspx_eval_webshop_isFalse_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.print(SIHTMLUtil.HTMLEncode(buyDetailID.getReceiptDate()));
          int evalDoAfterBody = _jspx_th_webshop_isFalse_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isFalse_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isFalse_value.reuse(_jspx_th_webshop_isFalse_0);
      out.write("</font>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<hr size=\"1\" color=\"blue\">");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">【ご連絡先】");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;氏名：");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;&nbsp;");
      out.print(SIHTMLUtil.HTMLEncode(buyDetailID.getCustName()));
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;住所：");
      out.write("</font>");
      out.write("<br>\r\n&nbsp;&nbsp;");
      out.write("<font size=\"2\" color=\"black\">〒");
      out.print(SIHTMLUtil.HTMLEncode(buyDetailID.getPostCode()));
      out.write("</font>");
      out.write("<br>\r\n&nbsp;&nbsp;");
      out.write("<font size=\"2\" color=\"black\">");
      out.print(SIHTMLUtil.HTMLEncode(buyDetailID.getAddress()));
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;連絡先：");
      out.write("</font>");
      out.write("<br>\r\n&nbsp;");
      out.write("<font size=\"2\" color=\"black\">&nbsp;&nbsp;");
      out.print(SIHTMLUtil.HTMLEncode(buyDetailID.getStoreTel()));
      out.write("</font>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">【配送先】");
      out.write("</font>\r\n");
      /* ----  webshop:siiterator ---- */
      jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_0 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
      _jspx_th_webshop_siiterator_0.setPageContext(pageContext);
      _jspx_th_webshop_siiterator_0.setParent(null);
      _jspx_th_webshop_siiterator_0.setId("deliveryID");
      _jspx_th_webshop_siiterator_0.setType("jp.co.sint.beans.mallmgr.UIRegOrderDelivery");
      _jspx_th_webshop_siiterator_0.setCollection(orderDeliveryColl);
      int _jspx_eval_webshop_siiterator_0 = _jspx_th_webshop_siiterator_0.doStartTag();
      if (_jspx_eval_webshop_siiterator_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        jp.co.sint.beans.mallmgr.UIRegOrderDelivery deliveryID = null;
        deliveryID = (jp.co.sint.beans.mallmgr.UIRegOrderDelivery) pageContext.findAttribute("deliveryID");
        do {
          out.write("\r\n");
sumOfB=SIUtil.add(sumOfB,deliveryID.getDeliveryFeeIncTax());//送料の合計
          out.write("\r\n");
          out.write("<br>\r\n");
          out.write("<font size=\"2\" color=\"black\">&nbsp;宛名:");
          out.write("</font>");
          out.write("<br>\r\n");
          out.write("<font size=\"2\" color=\"black\">&nbsp;&nbsp;");
          out.print(SIHTMLUtil.HTMLEncode(deliveryID.getDeliveryAddressee()));
          out.write("</font>");
          out.write("<br>\r\n");
          out.write("<font size=\"2\" color=\"black\">&nbsp;住所:");
          out.write("</font>");
          out.write("<br>\r\n&nbsp;&nbsp;");
          out.write("<font size=\"2\" color=\"black\">〒");
          out.print(SIHTMLUtil.HTMLEncode(deliveryID.getPostCode()));
          out.write("\r\n&nbsp;");
          out.print(SIHTMLUtil.HTMLEncode(deliveryID.getAddress()));
          out.write("</font>");
          out.write("<br>");
          out.write("<br>\r\n");
          out.write("<font size=\"2\" color=\"black\">【送料】");
          out.write("</font>");
          out.write("<br>\r\n");
          out.write("<font size=\"2\" color=\"black\">&nbsp;配送方法:");
          out.print(SIHTMLUtil.HTMLEncode(deliveryID.getDeliveryTypeName()));
          out.write("</font>");
          out.write("<br>\r\n");
          out.write("<font size=\"2\" color=\"black\">&nbsp;送料:");
          /* ----  webshop:sicurrency ---- */
          jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_1 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
          _jspx_th_webshop_sicurrency_1.setPageContext(pageContext);
          _jspx_th_webshop_sicurrency_1.setParent(_jspx_th_webshop_siiterator_0);
          _jspx_th_webshop_sicurrency_1.setValue(deliveryID.getDeliveryFeeIncTax());
          int _jspx_eval_webshop_sicurrency_1 = _jspx_th_webshop_sicurrency_1.doStartTag();
          if (_jspx_th_webshop_sicurrency_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_1);
          out.print(SIHTMLUtil.HTMLEncode(deliveryID.getDeliveryTaxName()));
          out.write("</font>");
          out.write("<br>\r\n");
orderDetailColl=deliveryID.getDetailCollectionRef(connection);
          out.write("\r\n");
          /* ----  webshop:siiterator ---- */
          jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_1 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
          _jspx_th_webshop_siiterator_1.setPageContext(pageContext);
          _jspx_th_webshop_siiterator_1.setParent(_jspx_th_webshop_siiterator_0);
          _jspx_th_webshop_siiterator_1.setId("detailID");
          _jspx_th_webshop_siiterator_1.setType("jp.co.sint.beans.mallmgr.UIRegOrderDetail");
          _jspx_th_webshop_siiterator_1.setCollection(orderDetailColl);
          int _jspx_eval_webshop_siiterator_1 = _jspx_th_webshop_siiterator_1.doStartTag();
          if (_jspx_eval_webshop_siiterator_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            jp.co.sint.beans.mallmgr.UIRegOrderDetail detailID = null;
            detailID = (jp.co.sint.beans.mallmgr.UIRegOrderDetail) pageContext.findAttribute("detailID");
            do {
              out.write("\r\n");
sumOfA=SIUtil.add(sumOfA,detailID.getPriceIncGift());//商品の購入合計価格
              out.write("<br>\r\n");
              out.write("\r\n");
              out.write("\r\n");
String detailURL = cmdtyDetailSrvSite+"?shc="+detailID.getShopCode()+"&cmc="+detailID.getCmdtyCode()+"&inc="+detailID.getIndividualCode()+"&cmpt="+detailID.getCmdtyCompositionFlg()+"&pageNumberTxt="+detailID.getPageNumberTxt();
              out.write("\r\n");
              /* ----  webshop:isTrue ---- */
              jp.co.sint.taglib.SIIsTrueTag _jspx_th_webshop_isTrue_0 = (jp.co.sint.taglib.SIIsTrueTag) _jspx_tagPool_webshop_isTrue_value.get(jp.co.sint.taglib.SIIsTrueTag.class);
              _jspx_th_webshop_isTrue_0.setPageContext(pageContext);
              _jspx_th_webshop_isTrue_0.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_isTrue_0.setValue(detailID.isFrontDisp());
              int _jspx_eval_webshop_isTrue_0 = _jspx_th_webshop_isTrue_0.doStartTag();
              if (_jspx_eval_webshop_isTrue_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                do {
                  out.write("\r\n");
                  out.write("<a href=");
                  out.print(detailURL);
                  out.write(">\r\n");
 if (SIUtil.isNotNull(detailID.getSetIndividualCode())) { 
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"blue\">&nbsp;商品ｺｰﾄﾞ：");
                  out.print( detailID.getSetIndividualCode());
                  out.write("(");
                  out.print(detailID.getIndividualCode());
                  out.write(")");
                  out.write("</font>");
                  out.write("<br>\r\n");
 } else { 
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"blue\">&nbsp;商品ｺｰﾄﾞ：");
                  out.print(detailID.getIndividualCode());
                  out.write("</font>");
                  out.write("<br>\r\n");
 } 
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"blue\">&nbsp;商品名:");
                  out.write("</font>");
                  out.write("<br>\r\n");
 if (SIUtil.isNotNull(detailID.getSetIndividualCode())) { 
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"blue\">&nbsp;&nbsp;");
                  out.print(SIHTMLUtil.HTMLEncode(SIBGUtil.getCmdtyFullName(connection,detailID.getCmdtyCode(),detailID.getIndividualCode(),detailID.getSetDetailFlg())));
                  out.write("</font>");
                  out.write("<br>\r\n");
 } else { 
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"blue\">&nbsp;&nbsp;");
                  out.print(SIHTMLUtil.HTMLEncode(detailID.getCmdtyName()));
                  out.write("</font>");
                  out.write("<br>\r\n");
 } 
                  out.write("\r\n");
                  out.write("</a>\r\n");
                  int evalDoAfterBody = _jspx_th_webshop_isTrue_0.doAfterBody();
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_isTrue_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_isTrue_value.reuse(_jspx_th_webshop_isTrue_0);
              out.write("\r\n");
              /* ----  webshop:isFalse ---- */
              jp.co.sint.taglib.SIIsFalseTag _jspx_th_webshop_isFalse_1 = (jp.co.sint.taglib.SIIsFalseTag) _jspx_tagPool_webshop_isFalse_value.get(jp.co.sint.taglib.SIIsFalseTag.class);
              _jspx_th_webshop_isFalse_1.setPageContext(pageContext);
              _jspx_th_webshop_isFalse_1.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_isFalse_1.setValue(detailID.isFrontDisp());
              int _jspx_eval_webshop_isFalse_1 = _jspx_th_webshop_isFalse_1.doStartTag();
              if (_jspx_eval_webshop_isFalse_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                do {
                  out.write("\r\n");
 if (SIUtil.isNotNull(detailID.getSetIndividualCode())) { 
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"black\">&nbsp;商品ｺｰﾄﾞ：");
                  out.print( detailID.getSetIndividualCode());
                  out.write("(");
                  out.print(detailID.getIndividualCode());
                  out.write(")");
                  out.write("</font>");
                  out.write("<br>\r\n");
 } else { 
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"black\">&nbsp;商品ｺｰﾄﾞ：");
                  out.print(detailID.getIndividualCode());
                  out.write("</font>");
                  out.write("<br>\r\n");
 } 
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"black\">&nbsp;商品名:");
                  out.write("</font>");
                  out.write("<br>\r\n");
 if (SIUtil.isNotNull(detailID.getSetIndividualCode())) { 
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"black\">&nbsp;&nbsp;");
                  out.print(SIHTMLUtil.HTMLEncode(SIBGUtil.getCmdtyFullName(connection,detailID.getCmdtyCode(),detailID.getIndividualCode(),detailID.getSetDetailFlg())));
                  out.write("</font>");
                  out.write("<br>\r\n");
 } else { 
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"black\">&nbsp;&nbsp;");
                  out.print(SIHTMLUtil.HTMLEncode(detailID.getCmdtyName()));
                  out.write("</font>");
                  out.write("<br>\r\n");
 } 
                  out.write("\r\n");
                  int evalDoAfterBody = _jspx_th_webshop_isFalse_1.doAfterBody();
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_isFalse_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_isFalse_value.reuse(_jspx_th_webshop_isFalse_1);
              out.write("\r\n");
              out.write("<font size=\"2\" color=\"black\">&nbsp;単価:");
              /* ----  webshop:sicurrency ---- */
              jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_2 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
              _jspx_th_webshop_sicurrency_2.setPageContext(pageContext);
              _jspx_th_webshop_sicurrency_2.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_sicurrency_2.setValue(SIHTMLUtil.HTMLEncode(detailID.getPriceIncTax()));
              int _jspx_eval_webshop_sicurrency_2 = _jspx_th_webshop_sicurrency_2.doStartTag();
              if (_jspx_th_webshop_sicurrency_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_2);
              out.write("(");
              out.print(SIHTMLUtil.HTMLEncode(detailID.getCmdtyTaxName()));
              out.write(")");
              out.write("</font>");
              out.write("<br>\r\n");
              out.write("<font size=\"2\" color=\"black\">&nbsp;数量:");
              /* ----  webshop:siquantity ---- */
              jp.co.sint.taglib.SIQuantityTag _jspx_th_webshop_siquantity_0 = (jp.co.sint.taglib.SIQuantityTag) _jspx_tagPool_webshop_siquantity_value_nobody.get(jp.co.sint.taglib.SIQuantityTag.class);
              _jspx_th_webshop_siquantity_0.setPageContext(pageContext);
              _jspx_th_webshop_siquantity_0.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_siquantity_0.setValue(SIHTMLUtil.HTMLEncode(detailID.getAmount()));
              int _jspx_eval_webshop_siquantity_0 = _jspx_th_webshop_siquantity_0.doStartTag();
              if (_jspx_th_webshop_siquantity_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_siquantity_value_nobody.reuse(_jspx_th_webshop_siquantity_0);
              out.write("</font>");
              out.write("<br>\r\n");
              int evalDoAfterBody = _jspx_th_webshop_siiterator_1.doAfterBody();
              detailID = (jp.co.sint.beans.mallmgr.UIRegOrderDetail) pageContext.findAttribute("detailID");
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
          }
          if (_jspx_th_webshop_siiterator_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_1);
          out.write("\r\n");
          out.write("<hr size=\"1\" color=\"blue\">\r\n");
          int evalDoAfterBody = _jspx_th_webshop_siiterator_0.doAfterBody();
          deliveryID = (jp.co.sint.beans.mallmgr.UIRegOrderDelivery) pageContext.findAttribute("deliveryID");
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_siiterator_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_0);
      out.write("\r\n");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">【合計金額(税込)】");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;商品合計:");
      /* ----  webshop:sicurrency ---- */
      jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_3 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
      _jspx_th_webshop_sicurrency_3.setPageContext(pageContext);
      _jspx_th_webshop_sicurrency_3.setParent(null);
      _jspx_th_webshop_sicurrency_3.setValue(sumOfA);
      int _jspx_eval_webshop_sicurrency_3 = _jspx_th_webshop_sicurrency_3.doStartTag();
      if (_jspx_th_webshop_sicurrency_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_3);
      out.write("</font>");
      out.write("<br>\r\n");
sumOfB=SIUtil.add(sumOfB,buyDetailID.getDiscountDeliveryFee());
      out.write("\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;送料合計:");
      /* ----  webshop:sicurrency ---- */
      jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_4 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
      _jspx_th_webshop_sicurrency_4.setPageContext(pageContext);
      _jspx_th_webshop_sicurrency_4.setParent(null);
      _jspx_th_webshop_sicurrency_4.setValue(sumOfB);
      int _jspx_eval_webshop_sicurrency_4 = _jspx_th_webshop_sicurrency_4.doStartTag();
      if (_jspx_th_webshop_sicurrency_4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_4);
      out.write("</font>");
      out.write("<br>\r\n");
sumOfC=SIUtil.add(buyDetailID.getFeeIncTax(),buyDetailID.getDiscountFee());
      out.write("\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;手数料:");
      /* ----  webshop:sicurrency ---- */
      jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_5 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
      _jspx_th_webshop_sicurrency_5.setPageContext(pageContext);
      _jspx_th_webshop_sicurrency_5.setParent(null);
      _jspx_th_webshop_sicurrency_5.setValue(sumOfC);
      int _jspx_eval_webshop_sicurrency_5 = _jspx_th_webshop_sicurrency_5.doStartTag();
      if (_jspx_th_webshop_sicurrency_5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_5);
      out.write("</font>");
      out.write("<br>");
      out.write("<br>\r\n");
sumOfD=SIUtil.add(sumOfA,sumOfB,sumOfC);
      out.write("\r\n");
if(!sumOfG.equals("0") || buyDetailID.getPointEnableFlg().equals("1")){
      out.write("<font size=\"2\" color=\"black\">&nbsp;小計:");
      /* ----  webshop:sicurrency ---- */
      jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_6 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
      _jspx_th_webshop_sicurrency_6.setPageContext(pageContext);
      _jspx_th_webshop_sicurrency_6.setParent(null);
      _jspx_th_webshop_sicurrency_6.setValue(sumOfD);
      int _jspx_eval_webshop_sicurrency_6 = _jspx_th_webshop_sicurrency_6.doStartTag();
      if (_jspx_th_webshop_sicurrency_6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_6);
      out.write("<br>");
      out.write("<br>");
}
      out.write("\r\n");
if(!sumOfG.equals("0")){
      out.write("<font size=\"2\" color=\"black\">&nbsp;値引金額");
      /* ----  webshop:sicurrency ---- */
      jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_7 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
      _jspx_th_webshop_sicurrency_7.setPageContext(pageContext);
      _jspx_th_webshop_sicurrency_7.setParent(null);
      _jspx_th_webshop_sicurrency_7.setValue(sumOfG);
      int _jspx_eval_webshop_sicurrency_7 = _jspx_th_webshop_sicurrency_7.doStartTag();
      if (_jspx_th_webshop_sicurrency_7.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_7);
      out.write("</font>");
      out.write("<br>");
      out.write("<br>");
}
      out.write("\r\n");
      out.write("\r\n");
 if (!sumOfH.equals("0")) { 
      out.write("<font size=\"2\" color=\"black\">&nbsp;ｾｯﾄ値引金額");
      /* ----  webshop:sicurrency ---- */
      jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_8 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
      _jspx_th_webshop_sicurrency_8.setPageContext(pageContext);
      _jspx_th_webshop_sicurrency_8.setParent(null);
      _jspx_th_webshop_sicurrency_8.setValue(sumOfH);
      int _jspx_eval_webshop_sicurrency_8 = _jspx_th_webshop_sicurrency_8.doStartTag();
      if (_jspx_th_webshop_sicurrency_8.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_8);
      out.write("</font>");
      out.write("<br>");
      out.write("<br>");
 } 
      out.write("\r\n");
      out.write("\r\n");
if(buyDetailID.getPointEnableFlg().equals("1")){
      out.write("\r\n");
sumOfE=buyDetailID.getSumByPoint();
      out.write("\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;ﾎﾟｲﾝﾄ使用額:");
      /* ----  webshop:sicurrency ---- */
      jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_9 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
      _jspx_th_webshop_sicurrency_9.setPageContext(pageContext);
      _jspx_th_webshop_sicurrency_9.setParent(null);
      _jspx_th_webshop_sicurrency_9.setValue(sumOfE);
      int _jspx_eval_webshop_sicurrency_9 = _jspx_th_webshop_sicurrency_9.doStartTag();
      if (_jspx_th_webshop_sicurrency_9.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_9);
      out.write("</font>");
      out.write("<br>");
      out.write("<br>\r\n");
}
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
sumOfF=SIUtil.sub_LL(SIUtil.sub_LL(SIUtil.sub_LL(sumOfD,sumOfG),sumOfH),sumOfE);
      out.write("\r\n");
      out.write("\r\n");
      out.write("<font size=\"2\" color=\"black\">&nbsp;お支払い合計額:");
      /* ----  webshop:sicurrency ---- */
      jp.co.sint.taglib.SICurrencyTag _jspx_th_webshop_sicurrency_10 = (jp.co.sint.taglib.SICurrencyTag) _jspx_tagPool_webshop_sicurrency_value_nobody.get(jp.co.sint.taglib.SICurrencyTag.class);
      _jspx_th_webshop_sicurrency_10.setPageContext(pageContext);
      _jspx_th_webshop_sicurrency_10.setParent(null);
      _jspx_th_webshop_sicurrency_10.setValue(sumOfF);
      int _jspx_eval_webshop_sicurrency_10 = _jspx_th_webshop_sicurrency_10.doStartTag();
      if (_jspx_th_webshop_sicurrency_10.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_sicurrency_value_nobody.reuse(_jspx_th_webshop_sicurrency_10);
      out.write("</font>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<a href=\"");
      out.print(buyhistSrvSite+"?a="+SIConfig.SIACTION_BACK+"&pageNumberTxt="+buyDetailID.getPageNumberTxt());
      out.write("\">");
      out.write("<font size=\"2\" color=\"blue\">△一覧に戻る");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"gainsboro\">\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<hr size=\"1\" color=\"blue\">");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("&nbsp;");
      out.write("<img localsrc=\"184\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.main"));
      out.write("\" accesskey=\"5\">");
      out.write("<font size=\"2\" color=\"blue\">ﾄｯﾌﾟに戻る");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"185\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.cart"));
      out.write("\" accesskey=\"6\">");
      out.write("<font size=\"2\" color=\"blue\">お会計");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"186\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.customer.menu"));
      out.write("\" accesskey=\"7\">");
      out.write("<font size=\"2\" color=\"blue\">ﾏｲﾍﾟｰｼﾞ");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"187\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.howto"));
      out.write("\" accesskey=\"8\">");
      out.write("<font size=\"2\" color=\"blue\">ご利用方法");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"188\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.mall.company"));
      out.write("\" accesskey=\"9\">");
      out.write("<font size=\"2\" color=\"blue\">全国ｼｮｰﾙｰﾑご案内");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"325\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.au.login"));
      out.write("\" accesskey=\"0\">");
      out.write("<font size=\"2\" color=\"blue\">ﾛｸﾞｲﾝ");
      out.write("</font>");
      out.write("</a>\r\n");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<hr size=\"1\" color=\"blue\">\r\n");
      out.write("<div align=\"center\">");
      out.write("<font size=\"1\" >Copyright by");
      out.write("</font>");
      out.write("</div>\r\n");
      out.write("<div align=\"center\">");
      out.write("<font size=\"1\" >BEAUTY GARAGE INC.");
      out.write("</font>");
      out.write("</div>\r\n");
      out.write("<div align=\"center\">");
      out.write("<font size=\"1\" >All rights reserved.");
      out.write("</font>");
      out.write("</div>\r\n");
      out.write("<img src=\"");
      out.print(SIBGUtil.googleAnalyticsGetImageUrl(request,""));
      out.write("\" />");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
}catch(Exception e){e.printStackTrace();throw new ServletException();}finally{databaseConnection.close();}
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
        out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }

  private boolean _jspx_meth_response_sendRedirect_1(javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  response:sendRedirect ---- */
    org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_1 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
    _jspx_th_response_sendRedirect_1.setPageContext(pageContext);
    _jspx_th_response_sendRedirect_1.setParent(null);
    int _jspx_eval_response_sendRedirect_1 = _jspx_th_response_sendRedirect_1.doStartTag();
    if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
        out = _bc;
        _jspx_th_response_sendRedirect_1.setBodyContent(_bc);
        _jspx_th_response_sendRedirect_1.doInitBody();
      }
      do {
        out.write("http://www.beautygarage.jp/errorAU.html");
        int evalDoAfterBody = _jspx_th_response_sendRedirect_1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = pageContext.popBody();
    }
    if (_jspx_th_response_sendRedirect_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_1);
    return false;
  }
}
