Changeset 23372 for branches/version-2_13-dev/data/class/pages/admin
- Timestamp:
- 2014/04/22 14:03:01 (12 years ago)
- Location:
- branches/version-2_13-dev/data/class/pages/admin/order
- Files:
-
- 2 edited
-
LC_Page_Admin_Order_Disp.php (modified) (3 diffs)
-
LC_Page_Admin_Order_Edit.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Disp.php
r23300 r23372 130 130 $this->arrForm = $objFormParam->getFormParamList(); 131 131 $this->arrAllShipping = $objFormParam->getSwapArray(array_merge($this->arrShippingKeys, $this->arrShipmentItemKeys)); 132 $this->tpl_shipping_quantity = count($this->arrAllShipping); 132 133 $this->arrDelivTime = SC_Helper_Delivery_Ex::getDelivTime($objFormParam->getValue('deliv_id')); 133 134 $this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); … … 223 224 224 225 // 複数情報 225 $objFormParam->addParam('配送数', 'shipping_quantity', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 1);226 226 $objFormParam->addParam('配送ID', 'shipping_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 0); 227 227 $objFormParam->addParam('お名前1', 'shipping_name01', STEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK')); … … 290 290 $arrShippings[$row['shipping_id']] = $row; 291 291 } 292 $objFormParam->setValue('shipping_quantity', count($arrShippings));293 292 $objFormParam->setParam(SC_Utils_Ex::sfSwapArray($arrShippings)); 294 293 -
branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
r23361 r23372 310 310 $this->arrForm = $objFormParam->getFormParamList(); 311 311 $this->arrAllShipping = $objFormParam->getSwapArray(array_merge($this->arrShippingKeys, $this->arrShipmentItemKeys)); 312 $this->tpl_shipping_quantity = count($this->arrAllShipping); 312 313 $this->top_shipping_id = array_shift((array_keys($this->arrAllShipping))); 313 314 $this->arrDelivTime = SC_Helper_Delivery_Ex::getDelivTime($objFormParam->getValue('deliv_id')); … … 408 409 409 410 // 複数情報 410 $objFormParam->addParam('配送数', 'shipping_quantity', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 1);411 411 $objFormParam->addParam('配送ID', 'shipping_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 0); 412 412 $objFormParam->addParam('お名前(姓)', 'shipping_name01', STEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK', 'NO_SPTAB')); … … 581 581 } 582 582 } 583 $objFormParam->setValue('shipping_quantity', count($arrShippings));584 583 $objFormParam->setParam(SC_Utils_Ex::sfSwapArray($arrShippings)); 585 584 … … 940 939 public function addShipping(&$objFormParam) 941 940 { 942 $objFormParam->setValue('shipping_quantity',943 $objFormParam->getValue('shipping_quantity') + 1);944 941 $arrShippingIds = $objFormParam->getValue('shipping_id'); 945 942 $arrShippingIds[] = max($arrShippingIds) + 1;
Note: See TracChangeset
for help on using the changeset viewer.
