Ignore:
Timestamp:
2014/04/22 14:03:01 (12 years ago)
Author:
Seasoft
Message:

#2530 (受注登録画面 配送数の扱いが冗長過ぎる)

Location:
branches/version-2_13-dev/data/class/pages/admin/order
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Disp.php

    r23300 r23372  
    130130        $this->arrForm = $objFormParam->getFormParamList(); 
    131131        $this->arrAllShipping = $objFormParam->getSwapArray(array_merge($this->arrShippingKeys, $this->arrShipmentItemKeys)); 
     132        $this->tpl_shipping_quantity = count($this->arrAllShipping); 
    132133        $this->arrDelivTime = SC_Helper_Delivery_Ex::getDelivTime($objFormParam->getValue('deliv_id')); 
    133134        $this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 
     
    223224 
    224225        // 複数情報 
    225         $objFormParam->addParam('配送数', 'shipping_quantity', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 1); 
    226226        $objFormParam->addParam('配送ID', 'shipping_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 0); 
    227227        $objFormParam->addParam('お名前1', 'shipping_name01', STEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK')); 
     
    290290            $arrShippings[$row['shipping_id']] = $row; 
    291291        } 
    292         $objFormParam->setValue('shipping_quantity', count($arrShippings)); 
    293292        $objFormParam->setParam(SC_Utils_Ex::sfSwapArray($arrShippings)); 
    294293 
  • branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r23361 r23372  
    310310        $this->arrForm        = $objFormParam->getFormParamList(); 
    311311        $this->arrAllShipping = $objFormParam->getSwapArray(array_merge($this->arrShippingKeys, $this->arrShipmentItemKeys)); 
     312        $this->tpl_shipping_quantity = count($this->arrAllShipping); 
    312313        $this->top_shipping_id      = array_shift((array_keys($this->arrAllShipping))); 
    313314        $this->arrDelivTime   = SC_Helper_Delivery_Ex::getDelivTime($objFormParam->getValue('deliv_id')); 
     
    408409 
    409410        // 複数情報 
    410         $objFormParam->addParam('配送数', 'shipping_quantity', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 1); 
    411411        $objFormParam->addParam('配送ID', 'shipping_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 0); 
    412412        $objFormParam->addParam('お名前(姓)', 'shipping_name01', STEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK', 'NO_SPTAB')); 
     
    581581            } 
    582582        } 
    583         $objFormParam->setValue('shipping_quantity', count($arrShippings)); 
    584583        $objFormParam->setParam(SC_Utils_Ex::sfSwapArray($arrShippings)); 
    585584 
     
    940939    public function addShipping(&$objFormParam) 
    941940    { 
    942         $objFormParam->setValue('shipping_quantity', 
    943                                 $objFormParam->getValue('shipping_quantity') + 1); 
    944941        $arrShippingIds = $objFormParam->getValue('shipping_id'); 
    945942        $arrShippingIds[] = max($arrShippingIds) + 1; 
Note: See TracChangeset for help on using the changeset viewer.