Ignore:
Timestamp:
2012/03/17 16:40:27 (12 years ago)
Author:
Seasoft
Message:

#1705 (NOT NULL 制約)

  • ポイント周り

#1613 (typo修正・ソース整形・ソースコメントの改善)
#1692 (プラグイン機能(α版))

  • DB 間で列順を揃えた
Location:
branches/version-2_12-dev
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/admin/customer/edit.tpl

    r21539 r21653  
    235235            </tr> 
    236236            <tr> 
    237                 <th>所持ポイント</th> 
     237                <th>所持ポイント<span class="attention"> *</span></th> 
    238238                <td> 
    239239                    <span class="attention"><!--{$arrErr.point}--></span> 
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Customer.php

    r21528 r21653  
    320320            $objFormParam->addParam('会員状態', 'status', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    321321            $objFormParam->addParam('SHOP用メモ', 'note', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 
    322             $objFormParam->addParam('所持ポイント', 'point', INT_LEN, 'n', array('NUM_CHECK')); 
     322            $objFormParam->addParam('所持ポイント', 'point', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK'), 0); 
    323323        } 
    324324 
  • branches/version-2_12-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php

    r21591 r21653  
    9898        switch ($this->getMode()) { 
    9999            case 'edit_search': 
    100                 //検索引き継ぎ用パラメーター処理 
     100                // 検索引き継ぎ用パラメーター処理 
    101101                $this->lfInitSearchParam($objFormSearchParam); 
    102102                $objFormSearchParam->setParam($_REQUEST); 
     
    106106                    return; 
    107107                } 
    108                 //指定会員の情報をセット 
     108                // 指定会員の情報をセット 
    109109                $this->arrForm = SC_Helper_Customer_Ex::sfGetCustomerData($objFormSearchParam->getValue('edit_customer_id'), true); 
    110                 //購入履歴情報の取得 
     110                // 購入履歴情報の取得 
    111111                list($this->tpl_linemax, $this->arrPurchaseHistory, $this->objNavi) = $this->lfPurchaseHistory($objFormSearchParam->getValue('edit_customer_id')); 
    112112                $this->arrPagenavi = $this->objNavi->arrPagenavi; 
     
    115115                break; 
    116116            case 'confirm': 
    117                 //パラメーター処理 
     117                // パラメーター処理 
    118118                $this->lfInitParam($objFormParam); 
    119119                $objFormParam->setParam($_POST); 
     
    122122                $this->arrErr = $this->lfCheckError($objFormParam); 
    123123                $this->arrForm = $objFormParam->getHashArray(); 
    124                 //検索引き継ぎ用パラメーター処理 
     124                // 検索引き継ぎ用パラメーター処理 
    125125                $this->lfInitSearchParam($objFormSearchParam); 
    126126                $objFormSearchParam->setParam($objFormParam->getValue('search_data')); 
     
    134134                break; 
    135135            case 'return': 
    136                 //パラメーター処理 
     136                // パラメーター処理 
    137137                $this->lfInitParam($objFormParam); 
    138138                $objFormParam->setParam($_POST); 
     
    141141                $this->arrErr = $this->lfCheckError($objFormParam); 
    142142                $this->arrForm = $objFormParam->getHashArray(); 
    143                 //検索引き継ぎ用パラメーター処理 
     143                // 検索引き継ぎ用パラメーター処理 
    144144                $this->lfInitSearchParam($objFormSearchParam); 
    145145                $objFormSearchParam->setParam($objFormParam->getValue('search_data')); 
     
    149149                    return; 
    150150                } 
    151                 //購入履歴情報の取得 
     151                // 購入履歴情報の取得 
    152152                list($this->tpl_linemax, $this->arrPurchaseHistory, $this->objNavi) = $this->lfPurchaseHistory($objFormParam->getValue('customer_id'), $objFormParam->getValue('search_pageno')); 
    153153                $this->arrPagenavi = $this->objNavi->arrPagenavi; 
     
    157157                break; 
    158158            case 'complete': 
    159                 //登録・保存処理 
    160                 //パラメーター処理 
     159                // 登録・保存処理 
     160                // パラメーター処理 
    161161                $this->lfInitParam($objFormParam); 
    162162                $objFormParam->setParam($_POST); 
     
    165165                $this->arrErr = $this->lfCheckError($objFormParam); 
    166166                $this->arrForm = $objFormParam->getHashArray(); 
    167                 //検索引き継ぎ用パラメーター処理 
     167                // 検索引き継ぎ用パラメーター処理 
    168168                $this->lfInitSearchParam($objFormSearchParam); 
    169169                $objFormSearchParam->setParam($objFormParam->getValue('search_data')); 
     
    177177                break; 
    178178            case 'complete_return': 
    179                 //検索引き継ぎ用パラメーター処理 
     179                // 入力パラメーターチェック 
    180180                $this->lfInitParam($objFormParam); 
    181181                $objFormParam->setParam($_POST); 
     182                // 検索引き継ぎ用パラメーター処理 
    182183                $this->lfInitSearchParam($objFormSearchParam); 
    183184                $objFormSearchParam->setParam($objFormParam->getValue('search_data')); 
     
    188189                } 
    189190            default: 
     191                $this->lfInitParam($objFormParam); 
     192                $this->arrForm = $objFormParam->getHashArray(); 
    190193                break; 
    191194        } 
     
    250253        $arrErr = SC_Helper_Customer_Ex::sfCustomerMypageErrorCheck($objFormParam, true); 
    251254 
    252         //メアド重複チェック(共通ルーチンは使えない) 
     255        // メアド重複チェック(共通ルーチンは使えない) 
    253256        $objQuery   =& SC_Query_Ex::getSingletonInstance(); 
    254257        $col = 'email, email_mobile, customer_id'; 
     
    324327        $where = 'customer_id = ? AND del_flg <> 1'; 
    325328        $arrVal = array($customer_id); 
    326         //購入履歴の件数取得 
     329        // 購入履歴の件数取得 
    327330        $linemax = $objQuery->count($table, $where, $arrVal); 
    328331        // ページ送りの取得 
     
    333336        $order = 'order_id DESC'; 
    334337        $objQuery->setOrder($order); 
    335         //購入履歴情報の取得 
     338        // 購入履歴情報の取得 
    336339        $arrPurchaseHistory = $objQuery->select('*', $table, $where, $arrVal); 
    337340 
  • branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r21592 r21653  
    338338        $objFormParam->addParam('支払い合計', 'payment_total'); 
    339339        $objFormParam->addParam('加算ポイント', 'add_point'); 
    340         $objFormParam->addParam('お誕生日ポイント', 'birth_point'); 
     340        $objFormParam->addParam('お誕生日ポイント', 'birth_point', null, 'n', array(), 0); 
    341341        $objFormParam->addParam('消費税合計', 'tax'); 
    342342        $objFormParam->addParam('最終保持ポイント', 'total_point'); 
  • branches/version-2_12-dev/html/install/sql/create_table_mysql.sql

    r21643 r21653  
    315315    price02 numeric NOT NULL, 
    316316    deliv_fee numeric, 
    317     point_rate numeric, 
     317    point_rate numeric NOT NULL DEFAULT 0, 
    318318    creator_id int NOT NULL, 
    319319    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
     
    500500    buy_times numeric DEFAULT 0, 
    501501    buy_total numeric DEFAULT 0, 
    502     point numeric DEFAULT 0, 
     502    point numeric NOT NULL DEFAULT 0, 
    503503    note text, 
    504504    status smallint NOT NULL DEFAULT 1, 
     
    541541    deliv_fee numeric, 
    542542    charge numeric, 
    543     use_point numeric, 
    544     add_point numeric, 
    545     birth_point numeric DEFAULT 0, 
     543    use_point numeric NOT NULL DEFAULT 0, 
     544    add_point numeric NOT NULL DEFAULT 0, 
     545    birth_point numeric NOT NULL DEFAULT 0, 
    546546    tax numeric, 
    547547    total numeric, 
     
    598598    deliv_fee numeric, 
    599599    charge numeric, 
    600     use_point numeric, 
    601     add_point numeric, 
    602     birth_point numeric DEFAULT 0, 
     600    use_point numeric NOT NULL DEFAULT 0, 
     601    add_point numeric NOT NULL DEFAULT 0, 
     602    birth_point numeric NOT NULL DEFAULT 0, 
    603603    tax numeric, 
    604604    total numeric, 
     
    701701    price numeric, 
    702702    quantity numeric, 
    703     point_rate numeric, 
     703    point_rate numeric NOT NULL DEFAULT 0, 
    704704    PRIMARY KEY (order_detail_id) 
    705705); 
     
    750750    update_date timestamp NOT NULL, 
    751751    php_path text, 
     752    deletable_flg smallint NOT NULL DEFAULT 1, 
    752753    plugin_id int, 
    753     deletable_flg smallint NOT NULL DEFAULT 1, 
    754754    PRIMARY KEY (device_type_id, bloc_id), 
    755755    UNIQUE (device_type_id, filename(255)) 
  • branches/version-2_12-dev/html/install/sql/create_table_pgsql.sql

    r21643 r21653  
    315315    price02 numeric NOT NULL, 
    316316    deliv_fee numeric, 
    317     point_rate numeric, 
     317    point_rate numeric NOT NULL DEFAULT 0, 
    318318    creator_id int NOT NULL, 
    319319    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
     
    500500    buy_times numeric DEFAULT 0, 
    501501    buy_total numeric DEFAULT 0, 
    502     point numeric DEFAULT 0, 
     502    point numeric NOT NULL DEFAULT 0, 
    503503    note text, 
    504504    status smallint NOT NULL DEFAULT 1, 
     
    541541    deliv_fee numeric, 
    542542    charge numeric, 
    543     use_point numeric, 
    544     add_point numeric, 
    545     birth_point numeric DEFAULT 0, 
     543    use_point numeric NOT NULL DEFAULT 0, 
     544    add_point numeric NOT NULL DEFAULT 0, 
     545    birth_point numeric NOT NULL DEFAULT 0, 
    546546    tax numeric, 
    547547    total numeric, 
     
    598598    deliv_fee numeric, 
    599599    charge numeric, 
    600     use_point numeric, 
    601     add_point numeric, 
    602     birth_point numeric DEFAULT 0, 
     600    use_point numeric NOT NULL DEFAULT 0, 
     601    add_point numeric NOT NULL DEFAULT 0, 
     602    birth_point numeric NOT NULL DEFAULT 0, 
    603603    tax numeric, 
    604604    total numeric, 
     
    701701    price numeric, 
    702702    quantity numeric, 
    703     point_rate numeric, 
     703    point_rate numeric NOT NULL DEFAULT 0, 
    704704    PRIMARY KEY (order_detail_id) 
    705705); 
Note: See TracChangeset for help on using the changeset viewer.