當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonModel::getCarrierChannelByIds方法代碼示例

本文整理匯總了PHP中CommonModel::getCarrierChannelByIds方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonModel::getCarrierChannelByIds方法的具體用法?PHP CommonModel::getCarrierChannelByIds怎麽用?PHP CommonModel::getCarrierChannelByIds使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonModel的用法示例。


在下文中一共展示了CommonModel::getCarrierChannelByIds方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: act_getChannel

 /**
  * 通過運輸方式id獲取對應的渠道
  * @return array $channellist
  * @author czq
  */
 public function act_getChannel()
 {
     $transportId = isset($_POST['transportId']) ? intval($_POST['transportId']) : '';
     if (empty($transportId)) {
         $errCode = 101;
         $errMsg = '未獲取運輸方式id';
         return false;
     }
     $channellist = CommonModel::getCarrierChannelByIds($transportId);
     //獲取國家渠道信息
     self::$errCode = 200;
     self::$errMsg = '獲取運輸渠道成功!';
     return $channellist;
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:19,代碼來源:whTransportPartition.action.php

示例2: view_edit

 /**
  * 編輯一個分渠道
  * @author czq
  */
 public function view_edit()
 {
     if ($_POST['submit']) {
         $id = intval($_POST['id']);
         $data = array('title' => $_POST['title'], 'channelName' => $_POST['channelName'], 'transportId' => $_POST['transportId'], 'channelId' => $_POST['channelId'], 'partition' => $_POST['partition'], 'is_delete' => 0);
         WhChannelPartitionModel::update($data, $id);
         header("location:index.php?mod=whChannelPartition&act=index");
     } else {
         $id = intval($_GET['id']);
         $data = WhChannelPartitionModel::find($id);
         $transportlist = CommonModel::getShipingTypeList();
         //獲取運輸方式
         $channellist = CommonModel::getCarrierChannelByIds($data['transportId']);
         //獲取國家渠道信息
         $this->smarty->assign('data', $data);
         $this->smarty->assign('transportlist', $transportlist);
         $this->smarty->assign('channellist', $channellist);
         $this->smarty->display('whChannelPartitionEdit.htm');
     }
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:24,代碼來源:whChannelPartition.view.php

示例3: view_edit

 public function view_edit()
 {
     if ($_POST['submit']) {
         $id = intval($_POST['id']);
         $data = array('title' => $_POST['title'], 'shortTitle' => $_POST['shortTitle'], 'transportId' => $_POST['transportId'], 'channelId' => $_POST['channelId'], 'channelName' => isset($_POST['channelName']) ? $_POST['channelName'] : '', 'partition' => $_POST['partition'], 'priority' => $_POST['priority'], 'countryWhiteList' => json_encode($_POST['countryWhiteList']), 'backAddress' => $_POST['backAddress'], 'modifiedtime' => time(), 'editUserId' => $_SESSION['userId'], 'status' => intval($_POST['status']));
         WhTransportPartitionModel::update($data, $id);
         header("location:index.php?mod=whTransportPartition&act=index");
     } else {
         $id = intval($_GET['id']);
         $data = WhTransportPartitionModel::find($id);
         $data['countryWhiteList'] = json_decode($data['countryWhiteList'], true);
         $transportlist = CommonModel::getShipingTypeList();
         //獲取運輸方式
         $countrylist = CommonModel::getCountryList();
         //獲取國建列表
         $channellist = CommonModel::getCarrierChannelByIds($data['transportId']);
         //獲取國家渠道信息
         $this->smarty->assign('data', $data);
         $this->smarty->assign('countrylist', $countrylist);
         $this->smarty->assign('transportlist', $transportlist);
         $this->smarty->assign('channellist', $channellist);
         $this->smarty->display('whTransportPartition_edit.htm');
     }
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:24,代碼來源:whTransportPartition.view.php


注:本文中的CommonModel::getCarrierChannelByIds方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。