Changeset 22831 for branches/version-2_13-dev/data/class/SC_Fpdf.php
- Timestamp:
- 2013/05/21 11:32:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_Fpdf.php
r22779 r22831 30 30 define('PDF_TEMPLATE_REALDIR', TEMPLATE_ADMIN_REALDIR . 'pdf/'); 31 31 32 class SC_Fpdf extends SC_Helper_FPDI 32 class SC_Fpdf extends SC_Helper_FPDI 33 33 { 34 function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf')34 public function __construct($download, $title, $tpl_pdf = 'nouhinsyo1.pdf') 35 35 { 36 36 $this->FPDF(); … … 69 69 } 70 70 71 function setData($arrData)71 public function setData($arrData) 72 72 { 73 73 $this->arrData = $arrData; … … 96 96 } 97 97 98 function setShopData()98 private function setShopData() 99 99 { 100 100 // ショップ情報 … … 134 134 } 135 135 136 function setMessageData()136 private function setMessageData() 137 137 { 138 138 // メッセージ … … 144 144 } 145 145 146 function setOrderData()146 private function setOrderData() 147 147 { 148 148 $arrOrder = array(); … … 267 267 * 備考の出力を行う 268 268 * 269 * @param string $str 入力文字列269 * @param string $str 入力文字列 270 270 * @return string 変更後の文字列 271 271 */ 272 function setEtcData()272 private function setEtcData() 273 273 { 274 274 $this->Cell(0, 10, '', 0, 1, 'C', 0, ''); … … 280 280 } 281 281 282 function createPdf()282 public function createPdf() 283 283 { 284 284 // PDFをブラウザに送信 … … 300 300 301 301 // PDF_Japanese::Text へのパーサー 302 function lfText($x, $y, $text, $size = 0, $style = '')302 private function lfText($x, $y, $text, $size = 0, $style = '') 303 303 { 304 304 // 退避 … … 314 314 315 315 // 受注データの取得 316 function lfGetOrderData($order_id)316 private function lfGetOrderData($order_id) 317 317 { 318 318 if (SC_Utils_Ex::sfIsInt($order_id)) { 319 319 // DBから受注情報を読み込む 320 $objQuery =& SC_Query_Ex::getSingletonInstance(); 321 $where = 'order_id = ?'; 322 $arrRet = $objQuery->select('*', 'dtb_order', $where, array($order_id)); 323 $this->arrDisp = $arrRet[0]; 324 list($point) = SC_Helper_Customer_Ex::sfGetCustomerPoint($order_id, $arrRet[0]['use_point'], $arrRet[0]['add_point']); 320 $objPurchase = new SC_Helper_Purchase_Ex(); 321 $this->arrDisp = $objPurchase->getOrder($order_id); 322 list($point) = SC_Helper_Customer_Ex::sfGetCustomerPoint($order_id, $this->arrDisp['use_point'], $this->arrDisp['add_point']); 325 323 $this->arrDisp['point'] = $point; 326 324 327 325 // 受注詳細データの取得 328 $arrRet = $ this->lfGetOrderDetail($order_id);326 $arrRet = $objPurchase->getOrderDetail($order_id); 329 327 $arrRet = SC_Utils_Ex::sfSwapArray($arrRet); 330 328 $this->arrDisp = array_merge($this->arrDisp, $arrRet); … … 337 335 } 338 336 } 339 340 // 受注詳細データの取得341 function lfGetOrderDetail($order_id)342 {343 $objQuery =& SC_Query_Ex::getSingletonInstance();344 $col = 'product_id, product_class_id, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate, tax_rate, tax_rule';345 $where = 'order_id = ?';346 $objQuery->setOrder('order_detail_id');347 $arrRet = $objQuery->select($col, 'dtb_order_detail', $where, array($order_id));348 return $arrRet;349 }350 337 }
Note: See TracChangeset
for help on using the changeset viewer.