Changeset 22796 for branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Status.php
- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Status.php
r22567 r22796 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Order_Status extends LC_Page_Admin_Ex 35 { 34 class LC_Page_Admin_Order_Status extends LC_Page_Admin_Ex { 36 35 37 36 // }}} … … 43 42 * @return void 44 43 */ 45 function init() 46 { 44 function init() { 47 45 parent::init(); 48 46 $this->tpl_mainpage = 'order/status.tpl'; … … 62 60 * @return void 63 61 */ 64 function process() 65 { 62 function process() { 66 63 $this->action(); 67 64 $this->sendResponse(); … … 73 70 * @return void 74 71 */ 75 function action() 76 { 72 function action() { 77 73 78 74 $objDb = new SC_Helper_DB_Ex(); … … 89 85 90 86 //支払方法の取得 91 $this->arrPayment = SC_Helper_Payment_Ex::getIDValueList();87 $this->arrPayment = $objDb->sfGetIDValueList('dtb_payment', 'payment_id', 'payment_method'); 92 88 93 89 switch ($this->getMode()) { … … 126 122 * @param SC_FormParam 127 123 */ 128 function lfInitParam(&$objFormParam) 129 { 124 function lfInitParam(&$objFormParam) { 130 125 $objFormParam->addParam('注文番号', 'order_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 131 126 $objFormParam->addParam('変更前対応状況', 'status', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); … … 141 136 * @param SC_FormParam 142 137 */ 143 function lfCheckError(&$objFormParam) 144 { 138 function lfCheckError(&$objFormParam) { 145 139 // 入力データを渡す。 146 140 $arrRet = $objFormParam->getHashArray(); … … 156 150 * @return void 157 151 */ 158 function destroy() 159 { 152 function destroy() { 160 153 parent::destroy(); 161 154 } 162 155 163 156 // 対応状況一覧の表示 164 function lfStatusDisp($status,$pageno) 165 { 157 function lfStatusDisp($status,$pageno) { 166 158 $objQuery =& SC_Query_Ex::getSingletonInstance(); 167 159 … … 198 190 * 対応状況の更新 199 191 */ 200 function lfStatusMove($statusId, $arrOrderId) 201 { 192 function lfStatusMove($statusId, $arrOrderId) { 202 193 $objPurchase = new SC_Helper_Purchase_Ex(); 203 194 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 224 215 * 受注テーブルの論理削除 225 216 */ 226 function lfDelete($arrOrderId) 227 { 217 function lfDelete($arrOrderId) { 228 218 $objQuery =& SC_Query_Ex::getSingletonInstance(); 229 219 … … 232 222 } 233 223 234 $objPurchase = new SC_Helper_Purchase_Ex(); 224 $arrUpdate = array( 225 'del_flg' => 1, 226 'update_date' => 'CURRENT_TIMESTAMP', 227 ); 228 229 $objQuery->begin(); 230 235 231 foreach ($arrOrderId as $orderId) { 236 $objPurchase->cancelOrder($orderId, ORDER_CANCEL, true); 237 } 232 $objQuery->update('dtb_order', $arrUpdate, 'order_id = ?', array($orderId)); 233 } 234 235 $objQuery->commit(); 238 236 239 237 $this->tpl_onload = "window.alert('選択項目を削除しました。');";
Note: See TracChangeset
for help on using the changeset viewer.