当前位置: 首页>>代码示例>>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;未经允许,请勿转载。