- Timestamp:
- 2013/05/02 18:11:36 (13 years ago)
- Location:
- branches/version-2_12-dev/data/class/pages/admin/customer
- Files:
-
- 3 edited
-
LC_Page_Admin_Customer.php (modified) (11 diffs)
-
LC_Page_Admin_Customer_Edit.php (modified) (12 diffs)
-
LC_Page_Admin_Customer_SearchCustomer.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
r22569 r22796 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Customer extends LC_Page_Admin_Ex 35 { 34 class LC_Page_Admin_Customer 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 = 'customer/index.tpl'; … … 88 86 * @return void 89 87 */ 90 function process() 91 { 88 function process() { 92 89 $this->action(); 93 90 $this->sendResponse(); … … 99 96 * @return void 100 97 */ 101 function action() 102 { 98 function action() { 103 99 104 100 // パラメーター管理クラス … … 151 147 * @return void 152 148 */ 153 function destroy() 154 { 149 function destroy() { 155 150 parent::destroy(); 156 151 } … … 162 157 * @return void 163 158 */ 164 function lfInitParam(&$objFormParam) 165 { 159 function lfInitParam(&$objFormParam) { 166 160 SC_Helper_Customer_Ex::sfSetSearchParam($objFormParam); 167 161 $objFormParam->addParam('編集対象会員ID', 'edit_customer_id', INT_LEN, 'n', array('NUM_CHECK','MAX_LENGTH_CHECK')); … … 174 168 * @return array エラー配列 175 169 */ 176 function lfCheckError(&$objFormParam) 177 { 170 function lfCheckError(&$objFormParam) { 178 171 return SC_Helper_Customer_Ex::sfCheckErrorSearchParam($objFormParam); 179 172 } … … 185 178 * @return boolean true:成功 false:失敗 186 179 */ 187 function lfDoDeleteCustomer($customer_id) 188 { 189 return SC_Helper_Customer_Ex::delete($customer_id); 180 function lfDoDeleteCustomer($customer_id) { 181 $arrData = SC_Helper_Customer_Ex::sfGetCustomerDataFromId($customer_id, 'del_flg = 0'); 182 if (SC_Utils_Ex::isBlank($arrData)) { 183 //対象となるデータが見つからない。 184 return false; 185 } 186 // XXXX: 仮会員は物理削除となっていたが論理削除に変更。 187 $arrVal = array( 188 'del_flg' => '1', 189 ); 190 SC_Helper_Customer_Ex::sfEditCustomerData($arrVal, $customer_id); 191 return true; 190 192 } 191 193 … … 196 198 * @return boolean true:成功 false:失敗 197 199 */ 198 function lfDoResendMail($customer_id) 199 { 200 function lfDoResendMail($customer_id) { 200 201 $arrData = SC_Helper_Customer_Ex::sfGetCustomerDataFromId($customer_id); 201 202 if (SC_Utils_Ex::isBlank($arrData) or $arrData['del_flg'] == 1) { … … 216 217 * @return array( integer 全体件数, mixed 会員データ一覧配列, mixed SC_PageNaviオブジェクト) 217 218 */ 218 function lfDoSearch($arrParam) 219 { 219 function lfDoSearch($arrParam) { 220 220 return SC_Helper_Customer_Ex::sfGetSearchData($arrParam); 221 221 } … … 227 227 * @return boolean true:成功 false:失敗 228 228 */ 229 function lfDoCSV($arrParam) 230 { 229 function lfDoCSV($arrParam) { 231 230 $objSelect = new SC_CustomerList_Ex($arrParam, 'customer'); 232 231 $order = 'update_date DESC, customer_id DESC'; -
branches/version-2_12-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php
r22567 r22796 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Customer_Edit extends LC_Page_Admin_Ex 35 { 34 class LC_Page_Admin_Customer_Edit 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 = 'customer/edit.tpl'; … … 68 66 69 67 // 支払い方法種別 70 $this->arrPayment = SC_Helper_Payment_Ex::getIDValueList(); 68 $objDb = new SC_Helper_DB_Ex(); 69 $this->arrPayment = $objDb->sfGetIDValueList('dtb_payment', 'payment_id', 'payment_method'); 71 70 } 72 71 … … 76 75 * @return void 77 76 */ 78 function process() 79 { 77 function process() { 80 78 $this->action(); 81 79 $this->sendResponse(); … … 87 85 * @return void 88 86 */ 89 function action() 90 { 87 function action() { 91 88 92 89 // パラメーター管理クラス … … 201 198 * @return void 202 199 */ 203 function destroy() 204 { 200 function destroy() { 205 201 parent::destroy(); 206 202 } … … 212 208 * @return void 213 209 */ 214 function lfInitParam(&$objFormParam) 215 { 210 function lfInitParam(&$objFormParam) { 216 211 // 会員項目のパラメーター取得 217 212 SC_Helper_Customer_Ex::sfCustomerEntryParam($objFormParam, true); … … 228 223 * @return void 229 224 */ 230 function lfInitSearchParam(&$objFormParam) 231 { 225 function lfInitSearchParam(&$objFormParam) { 232 226 SC_Helper_Customer_Ex::sfSetSearchParam($objFormParam); 233 227 // 初回受け入れ時用 … … 241 235 * @return array エラー配列 242 236 */ 243 function lfCheckErrorSearchParam(&$objFormParam) 244 { 237 function lfCheckErrorSearchParam(&$objFormParam) { 245 238 return SC_Helper_Customer_Ex::sfCheckErrorSearchParam($objFormParam); 246 239 } … … 252 245 * @return array エラー配列 253 246 */ 254 function lfCheckError(&$objFormParam) 255 { 247 function lfCheckError(&$objFormParam) { 256 248 $arrErr = SC_Helper_Customer_Ex::sfCustomerMypageErrorCheck($objFormParam, true); 257 249 … … 292 284 * @return array エラー配列 293 285 */ 294 function lfRegistData(&$objFormParam) 295 { 286 function lfRegistData(&$objFormParam) { 296 287 $objQuery =& SC_Query_Ex::getSingletonInstance(); 297 288 // 登録用データ取得 … … 322 313 * @return array( integer 全体件数, mixed 会員データ一覧配列, mixed SC_PageNaviオブジェクト) 323 314 */ 324 function lfPurchaseHistory($customer_id, $pageno = 0) 325 { 315 function lfPurchaseHistory($customer_id, $pageno = 0) { 326 316 if (SC_Utils_Ex::isBlank($customer_id)) { 327 317 return array('0', array(), NULL); -
branches/version-2_12-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_SearchCustomer.php
r22567 r22796 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Customer_SearchCustomer extends LC_Page_Admin_Ex 35 { 34 class LC_Page_Admin_Customer_SearchCustomer 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 = 'customer/search_customer.tpl'; … … 56 54 * @return void 57 55 */ 58 function process() 59 { 56 function process() { 60 57 $this->action(); 61 58 $this->sendResponse(); … … 67 64 * @return void 68 65 */ 69 function action() 70 { 66 function action() { 71 67 72 68 // パラメーター管理クラス … … 102 98 * @return void 103 99 */ 104 function destroy() 105 { 100 function destroy() { 106 101 parent::destroy(); 107 102 } … … 113 108 * @return void 114 109 */ 115 function lfInitParam(&$objFormParam) 116 { 110 function lfInitParam(&$objFormParam) { 117 111 SC_Helper_Customer_Ex::sfSetSearchParam($objFormParam); 118 112 } … … 124 118 * @return array エラー配列 125 119 */ 126 function lfCheckError(&$objFormParam) 127 { 120 function lfCheckError(&$objFormParam) { 128 121 return SC_Helper_Customer_Ex::sfCheckErrorSearchParam($objFormParam); 129 122 } … … 135 128 * @return array( integer 全体件数, mixed 会員データ一覧配列, mixed SC_PageNaviオブジェクト) 136 129 */ 137 function lfDoSearch($arrParam) 138 { 130 function lfDoSearch($arrParam) { 139 131 return SC_Helper_Customer_Ex::sfGetSearchData($arrParam); 140 132 }
Note: See TracChangeset
for help on using the changeset viewer.
