Source for file LC_Page_Admin_Order_Status.php
Documentation is available at LC_Page_Admin_Order_Status.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2011 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php';
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Admin_Order_Status.php 21185 2011-08-11 10:37:10Z shutta $
$this->tpl_mainpage = 'order/status.tpl';
$this->tpl_mainno = 'order';
$this->tpl_subno = 'status';
$this->tpl_maintitle = '受注管理';
$this->tpl_subtitle = '対応状況管理';
$masterData = new SC_DB_MasterData_Ex();
$this->arrORDERSTATUS = $masterData->getMasterData("mtb_order_status");
$this->arrORDERSTATUS_COLOR = $masterData->getMasterData("mtb_order_status_color");
$objDb = new SC_Helper_DB_Ex();
$objFormParam = new SC_FormParam_Ex();
$objFormParam->setParam($_POST);
$objFormParam->convParam();
$this->arrForm = $objFormParam->getHashArray();
// $this->arrForm = $_POST;
$this->arrPayment = $objDb->sfGetIDValueList("dtb_payment", "payment_id", "payment_method");
switch ($this->getMode()){
switch ($objFormParam->getValue('change_status')) {
$this->lfDelete($objFormParam->getValue('move'));
$this->lfStatusMove($objFormParam->getValue('change_status'), $objFormParam->getValue('move'));
$status = !is_null($objFormParam->getValue('status')) ? $objFormParam->getValue('status') : "";
$status = !is_null($_POST['status']) ? $objFormParam->getValue('status') : "";
$this->SelectedStatus = $status;
$this->lfStatusDisp($status, $objFormParam->getValue('search_pageno'));
$objFormParam->addParam("注文番号", "order_id", INT_LEN, 'n', array( "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("変更前対応状況", 'status', INT_LEN, 'n', array( "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("変更後対応状況", "change_status", STEXT_LEN, 'KVa', array( "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("ページ番号", "search_pageno", INT_LEN, 'n', array( "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("移動注文番号", 'move', INT_LEN, 'n', array( "MAX_LENGTH_CHECK", "NUM_CHECK"));
$arrRet = $objFormParam->getHashArray();
$arrErr = $objFormParam->checkError();
if(is_null($objFormParam->getValue('search_pageno'))){
$objFormParam->setValue('search_pageno', 1);
if($this->getMode() == 'change'){
if(is_null($objFormParam->getValue('change_status'))){
$objFormParam->setValue('change_status',"");
$objQuery = & SC_Query_Ex::getSingletonInstance();
$where = "del_flg = 0 AND status = ?";
$order = "order_id DESC";
$linemax = $objQuery->count($from, $where, $arrval);
$this->tpl_linemax = $linemax;
$page_max = ORDER_STATUS_MAX;
$objNavi = new SC_PageNavi_Ex($pageno, $linemax, $page_max, 'fnNaviSearchOnlyPage', NAVI_PMAX);
$this->tpl_strnavi = $objNavi->strnavi; // 表示文字列
$startno = $objNavi->start_row;
$this->tpl_pageno = $pageno;
$objQuery->setLimitOffset($page_max, $startno);
$objQuery->setOrder($order);
$this->arrStatus = $objQuery->select($select, $from, $where, $arrval);
$objPurchase = new SC_Helper_Purchase_Ex();
$objQuery = new SC_Query_Ex();
if (!isset ($arrOrderId) || !is_array($arrOrderId)) {
$masterData = new SC_DB_MasterData_Ex();
$arrORDERSTATUS = $masterData->getMasterData("mtb_order_status");
foreach ($arrOrderId as $orderId) {
$objPurchase->sfUpdateOrderStatus($orderId, $statusId);
$this->tpl_onload = "window.alert('選択項目を" . $arrORDERSTATUS[$statusId] . "へ移動しました。');";
$objQuery = new SC_Query_Ex();
if (!isset ($arrOrderId) || !is_array($arrOrderId)) {
'update_date' => 'CURRENT_TIMESTAMP'
foreach ($arrOrderId as $orderId) {
$objQuery->update('dtb_order', $arrUpdate, 'order_id = ?', array($orderId));
$this->tpl_onload = "window.alert('選択項目を削除しました。');";
Documentation generated on Fri, 24 Feb 2012 14:01:30 +0900 by Seasoft
|