Changeset 22856 for branches/version-2_13-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php
- Timestamp:
- 2013/06/08 16:35:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php
r22736 r22856 22 22 */ 23 23 24 // {{{ requires25 24 require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php'; 26 25 … … 32 31 * @version $Id$ 33 32 */ 34 class LC_Page_Admin_Products_ProductClass extends LC_Page_Admin_Ex 33 class LC_Page_Admin_Products_ProductClass extends LC_Page_Admin_Ex 35 34 { 36 37 // }}}38 // {{{ functions39 40 35 /** 41 36 * Page を初期化する. … … 75 70 function action() 76 71 { 77 78 72 // 商品マスターの検索条件パラメーターを初期化 79 73 $objFormParam = new SC_FormParam_Ex(); … … 86 80 87 81 switch ($this->getMode()) { 88 89 82 // 編集実行 90 83 case 'edit': … … 295 288 296 289 $objQuery->insert('dtb_products_class', $arrPC); 297 290 298 291 // 税情報登録/更新 299 292 SC_Helper_TaxRule_Ex::setTaxRuleForProduct($arrList['tax_rate'][$i], $arrPC['product_id'], $arrPC['product_class_id']); … … 325 318 $objErr->doFunc(array('規格', 'class_id1', 'select_class_id2'), array('TOP_EXIST_CHECK')); 326 319 $objErr->doFunc(array('規格1', '規格2', 'class_id1', 'class_id2'), array('DIFFERENT_CHECK')); 320 327 321 return $objErr->arrErr; 328 322 } … … 345 339 346 340 for ($i = 0; $i < $total; $i++) { 347 348 341 /* 349 342 * チェックボックスの入っている項目のみ, 必須チェックを行う. … … 351 344 */ 352 345 if (!SC_Utils_Ex::isBlank($arrValues['check'][$i])) { 353 354 346 /* 355 347 * 販売価格の必須チェック … … 403 395 } 404 396 } 397 405 398 return $arrErr; 406 399 } … … 520 513 $arrRet = SC_Helper_TaxRule_Ex::getTaxRule($arrValues['product_id'], $arrValues['product_class_id']); 521 514 $arrValues['tax_rate'] = $arrRet['tax_rate']; 522 515 523 516 $arrMergeProductsClass[] = $arrValues; 524 517 } … … 719 712 $arrParams = array($class_id1, $class_id2); 720 713 } 714 721 715 return $objQuery->select($col, $table, '', $arrParams); 722 716 } … … 732 726 { 733 727 $objQuery =& SC_Query_Ex::getSingletonInstance(); 728 734 729 return $objQuery->get('name', 'dtb_products', 'product_id = ?', array($product_id)); 735 730 } … … 756 751 } 757 752 } 753 758 754 return $results; 759 755 } … … 772 768 $col = 'product_code, price01, price02, stock, stock_unlimited, sale_limit, deliv_fee, point_rate'; 773 769 $where = 'product_id = ? AND classcategory_id1 = 0 AND classcategory_id2 = 0'; 770 774 771 return $objQuery->getRow($col, 'dtb_products_class', $where, array($product_id)); 775 772 }
Note: See TracChangeset
for help on using the changeset viewer.