Index: branches/version-2_13-dev/data/class/SC_Fpdf.php
===================================================================
--- branches/version-2_13-dev/data/class/SC_Fpdf.php	(revision 22779)
+++ branches/version-2_13-dev/data/class/SC_Fpdf.php	(revision 22831)
@@ -30,7 +30,7 @@
 define('PDF_TEMPLATE_REALDIR', TEMPLATE_ADMIN_REALDIR . 'pdf/');
 
-class SC_Fpdf extends SC_Helper_FPDI 
+class SC_Fpdf extends SC_Helper_FPDI
 {
-    function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf')
+    public function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf')
     {
         $this->FPDF();
@@ -69,5 +69,5 @@
     }
 
-    function setData($arrData)
+    public function setData($arrData)
     {
         $this->arrData = $arrData;
@@ -96,5 +96,5 @@
     }
 
-    function setShopData()
+    private function setShopData()
     {
         // ショップ情報
@@ -134,5 +134,5 @@
     }
 
-    function setMessageData()
+    private function setMessageData()
     {
         // メッセージ
@@ -144,5 +144,5 @@
     }
 
-    function setOrderData()
+    private function setOrderData()
     {
         $arrOrder = array();
@@ -267,8 +267,8 @@
      * 備考の出力を行う
      *
-     * @param string $str 入力文字列
+     * @param  string $str 入力文字列
      * @return string 変更後の文字列
      */
-    function setEtcData()
+    private function setEtcData()
     {
         $this->Cell(0, 10, '', 0, 1, 'C', 0, '');
@@ -280,5 +280,5 @@
     }
 
-    function createPdf()
+    public function createPdf()
     {
         // PDFをブラウザに送信
@@ -300,5 +300,5 @@
 
     // PDF_Japanese::Text へのパーサー
-    function lfText($x, $y, $text, $size = 0, $style = '')
+    private function lfText($x, $y, $text, $size = 0, $style = '')
     {
         // 退避
@@ -314,17 +314,15 @@
 
     // 受注データの取得
-    function lfGetOrderData($order_id)
+    private function lfGetOrderData($order_id)
     {
         if (SC_Utils_Ex::sfIsInt($order_id)) {
             // DBから受注情報を読み込む
-            $objQuery =& SC_Query_Ex::getSingletonInstance();
-            $where = 'order_id = ?';
-            $arrRet = $objQuery->select('*', 'dtb_order', $where, array($order_id));
-            $this->arrDisp = $arrRet[0];
-            list($point) = SC_Helper_Customer_Ex::sfGetCustomerPoint($order_id, $arrRet[0]['use_point'], $arrRet[0]['add_point']);
+            $objPurchase = new SC_Helper_Purchase_Ex();
+            $this->arrDisp = $objPurchase->getOrder($order_id);
+            list($point) = SC_Helper_Customer_Ex::sfGetCustomerPoint($order_id, $this->arrDisp['use_point'], $this->arrDisp['add_point']);
             $this->arrDisp['point'] = $point;
 
             // 受注詳細データの取得
-            $arrRet = $this->lfGetOrderDetail($order_id);
+            $arrRet = $objPurchase->getOrderDetail($order_id);
             $arrRet = SC_Utils_Ex::sfSwapArray($arrRet);
             $this->arrDisp = array_merge($this->arrDisp, $arrRet);
@@ -337,14 +335,3 @@
         }
     }
-
-    // 受注詳細データの取得
-    function lfGetOrderDetail($order_id)
-    {
-        $objQuery =& SC_Query_Ex::getSingletonInstance();
-        $col = 'product_id, product_class_id, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate, tax_rate, tax_rule';
-        $where = 'order_id = ?';
-        $objQuery->setOrder('order_detail_id');
-        $arrRet = $objQuery->select($col, 'dtb_order_detail', $where, array($order_id));
-        return $arrRet;
-    }
 }
