<?php
/**
 * @copyright ONE/DEPO Project
 * @license   PHP License 3.01 <http://www.php.net/license/3_01.txt>
 */

/**
 * 棚番 ID 入力・更新確認
 *
 * @package     Admin.Itemmanage.Rackid.Check
 * @author      netnee <mail@example.com>
 * @access      public
 */
class Admin_Itemmanage_Rackid_Check
{
    var $title;
    var $ins_title;
    var $upd_title;
    var $pagename;
    
    var $jansearch;
    var $stocktitlecd;
    var $defaultid;
    
    var $check;
    var $itemc;
    var $structc;
    var $stockc;
    var $st_orderno;
    var $orderdate;
    var $suppliernm;
    var $makernm;
    var $makeritemcd;
    var $itemnm;
    var $medianm;
    var $rackid;
    var $es_updcnt;
    
    var $updatedata = array();
    
    var $cd;
    var $structcd;
    var $stockcd;
    
    var $div;
    var $itemdiv;
    var $jancode;
    var $hinban;
    var $itemtitle;
    var $release_date_start;
    var $release_date_end;
    var $publish_date_start;
    var $publish_date_end;
    var $maker_capital;
    var $maker_name;
    var $media;
    var $cast;
    var $situation;
    var $photo_situation;
    var $publish_situation;
    var $sort;
    var $genre_select;
    
    /**
     * execute
     *
     * @access  public
     */
    function execute()
    {
        $log =& LogFactory::getLog();
        $log->debug("Admin_Itemmanage_Rackid_Checkが実行されました", "Admin_Itemmanage_Rackid_Check#execute");
        
        
        if (!empty($this->stocktitlecd)){
            $this->title = $this->upd_title;
        } else {
            $this->title = $this->ins_title;
        }
        
        
        foreach($this->check as $key => $val){
            if (!empty($this->rackid[$key])){
                $this->updatedata[] = array("itemcd"        => $this->itemc[$key],
                                            "structcd"      => $this->structc[$key],
                                            "stockcd"       => $this->stockc[$key],
                                            "st_orderno"    => $this->st_orderno[$key],
                                            "orderdate"     => $this->orderdate[$key],
                                            "suppliernm"    => $this->suppliernm[$key],
                                            "makernm"       => $this->makernm[$key],
                                            "makeritemcd"   => $this->makeritemcd[$key],
                                            "itemnm"        => $this->itemnm[$key],
                                            "medianm"       => $this->medianm[$key],
                                            "rackid"        => $this->rackid[$key],
                                            "es_updcnt"     => $this->es_updcnt[$key],
                                            );
            }
        }
        
        
        return 'success';
    }
}
?>
