Ignore:
Timestamp:
2013/05/02 18:11:36 (13 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

Location:
branches/version-2_12-dev/data/class/pages/admin/customer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php

    r22569 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Customer extends LC_Page_Admin_Ex  
    35 { 
     34class LC_Page_Admin_Customer extends LC_Page_Admin_Ex { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846        $this->tpl_mainpage = 'customer/index.tpl'; 
     
    8886     * @return void 
    8987     */ 
    90     function process() 
    91     { 
     88    function process() { 
    9289        $this->action(); 
    9390        $this->sendResponse(); 
     
    9996     * @return void 
    10097     */ 
    101     function action() 
    102     { 
     98    function action() { 
    10399 
    104100        // パラメーター管理クラス 
     
    151147     * @return void 
    152148     */ 
    153     function destroy() 
    154     { 
     149    function destroy() { 
    155150        parent::destroy(); 
    156151    } 
     
    162157     * @return void 
    163158     */ 
    164     function lfInitParam(&$objFormParam) 
    165     { 
     159    function lfInitParam(&$objFormParam) { 
    166160        SC_Helper_Customer_Ex::sfSetSearchParam($objFormParam); 
    167161        $objFormParam->addParam('編集対象会員ID', 'edit_customer_id', INT_LEN, 'n', array('NUM_CHECK','MAX_LENGTH_CHECK')); 
     
    174168     * @return array エラー配列 
    175169     */ 
    176     function lfCheckError(&$objFormParam) 
    177     { 
     170    function lfCheckError(&$objFormParam) { 
    178171        return SC_Helper_Customer_Ex::sfCheckErrorSearchParam($objFormParam); 
    179172    } 
     
    185178     * @return boolean true:成功 false:失敗 
    186179     */ 
    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; 
    190192    } 
    191193 
     
    196198     * @return boolean true:成功 false:失敗 
    197199     */ 
    198     function lfDoResendMail($customer_id) 
    199     { 
     200    function lfDoResendMail($customer_id) { 
    200201        $arrData = SC_Helper_Customer_Ex::sfGetCustomerDataFromId($customer_id); 
    201202        if (SC_Utils_Ex::isBlank($arrData) or $arrData['del_flg'] == 1) { 
     
    216217     * @return array( integer 全体件数, mixed 会員データ一覧配列, mixed SC_PageNaviオブジェクト) 
    217218     */ 
    218     function lfDoSearch($arrParam) 
    219     { 
     219    function lfDoSearch($arrParam) { 
    220220        return SC_Helper_Customer_Ex::sfGetSearchData($arrParam); 
    221221    } 
     
    227227     * @return boolean true:成功 false:失敗 
    228228     */ 
    229     function lfDoCSV($arrParam) 
    230     { 
     229    function lfDoCSV($arrParam) { 
    231230        $objSelect = new SC_CustomerList_Ex($arrParam, 'customer'); 
    232231        $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  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Customer_Edit extends LC_Page_Admin_Ex  
    35 { 
     34class LC_Page_Admin_Customer_Edit extends LC_Page_Admin_Ex { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846        $this->tpl_mainpage = 'customer/edit.tpl'; 
     
    6866 
    6967        // 支払い方法種別 
    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'); 
    7170    } 
    7271 
     
    7675     * @return void 
    7776     */ 
    78     function process() 
    79     { 
     77    function process() { 
    8078        $this->action(); 
    8179        $this->sendResponse(); 
     
    8785     * @return void 
    8886     */ 
    89     function action() 
    90     { 
     87    function action() { 
    9188 
    9289        // パラメーター管理クラス 
     
    201198     * @return void 
    202199     */ 
    203     function destroy() 
    204     { 
     200    function destroy() { 
    205201        parent::destroy(); 
    206202    } 
     
    212208     * @return void 
    213209     */ 
    214     function lfInitParam(&$objFormParam) 
    215     { 
     210    function lfInitParam(&$objFormParam) { 
    216211        // 会員項目のパラメーター取得 
    217212        SC_Helper_Customer_Ex::sfCustomerEntryParam($objFormParam, true); 
     
    228223     * @return void 
    229224     */ 
    230     function lfInitSearchParam(&$objFormParam) 
    231     { 
     225    function lfInitSearchParam(&$objFormParam) { 
    232226        SC_Helper_Customer_Ex::sfSetSearchParam($objFormParam); 
    233227        // 初回受け入れ時用 
     
    241235     * @return array エラー配列 
    242236     */ 
    243     function lfCheckErrorSearchParam(&$objFormParam) 
    244     { 
     237    function lfCheckErrorSearchParam(&$objFormParam) { 
    245238        return SC_Helper_Customer_Ex::sfCheckErrorSearchParam($objFormParam); 
    246239    } 
     
    252245     * @return array エラー配列 
    253246     */ 
    254     function lfCheckError(&$objFormParam) 
    255     { 
     247    function lfCheckError(&$objFormParam) { 
    256248        $arrErr = SC_Helper_Customer_Ex::sfCustomerMypageErrorCheck($objFormParam, true); 
    257249 
     
    292284     * @return array エラー配列 
    293285     */ 
    294     function lfRegistData(&$objFormParam) 
    295     { 
     286    function lfRegistData(&$objFormParam) { 
    296287        $objQuery   =& SC_Query_Ex::getSingletonInstance(); 
    297288        // 登録用データ取得 
     
    322313     * @return array( integer 全体件数, mixed 会員データ一覧配列, mixed SC_PageNaviオブジェクト) 
    323314     */ 
    324     function lfPurchaseHistory($customer_id, $pageno = 0) 
    325     { 
     315    function lfPurchaseHistory($customer_id, $pageno = 0) { 
    326316        if (SC_Utils_Ex::isBlank($customer_id)) { 
    327317            return array('0', array(), NULL); 
  • branches/version-2_12-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_SearchCustomer.php

    r22567 r22796  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Customer_SearchCustomer extends LC_Page_Admin_Ex  
    35 { 
     34class LC_Page_Admin_Customer_SearchCustomer extends LC_Page_Admin_Ex { 
    3635 
    3736    // }}} 
     
    4342     * @return void 
    4443     */ 
    45     function init() 
    46     { 
     44    function init() { 
    4745        parent::init(); 
    4846        $this->tpl_mainpage = 'customer/search_customer.tpl'; 
     
    5654     * @return void 
    5755     */ 
    58     function process() 
    59     { 
     56    function process() { 
    6057        $this->action(); 
    6158        $this->sendResponse(); 
     
    6764     * @return void 
    6865     */ 
    69     function action() 
    70     { 
     66    function action() { 
    7167 
    7268        // パラメーター管理クラス 
     
    10298     * @return void 
    10399     */ 
    104     function destroy() 
    105     { 
     100    function destroy() { 
    106101        parent::destroy(); 
    107102    } 
     
    113108     * @return void 
    114109     */ 
    115     function lfInitParam(&$objFormParam) 
    116     { 
     110    function lfInitParam(&$objFormParam) { 
    117111        SC_Helper_Customer_Ex::sfSetSearchParam($objFormParam); 
    118112    } 
     
    124118     * @return array エラー配列 
    125119     */ 
    126     function lfCheckError(&$objFormParam) 
    127     { 
     120    function lfCheckError(&$objFormParam) { 
    128121        return SC_Helper_Customer_Ex::sfCheckErrorSearchParam($objFormParam); 
    129122    } 
     
    135128     * @return array( integer 全体件数, mixed 会員データ一覧配列, mixed SC_PageNaviオブジェクト) 
    136129     */ 
    137     function lfDoSearch($arrParam) 
    138     { 
     130    function lfDoSearch($arrParam) { 
    139131        return SC_Helper_Customer_Ex::sfGetSearchData($arrParam); 
    140132    } 
Note: See TracChangeset for help on using the changeset viewer.