当前位置: 首页>>代码示例>>PHP>>正文


PHP CommonModel::getShipingTypeList方法代码示例

本文整理汇总了PHP中CommonModel::getShipingTypeList方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonModel::getShipingTypeList方法的具体用法?PHP CommonModel::getShipingTypeList怎么用?PHP CommonModel::getShipingTypeList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CommonModel的用法示例。


在下文中一共展示了CommonModel::getShipingTypeList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2: view_showUserCompense

 public function view_showUserCompense()
 {
     $shipArr = array();
     $platformAccountList = CommonModel::getPlatformAccountList();
     //获取平台及对应账号
     $shipingtyplist = CommonModel::getShipingTypeList();
     //运输方式列表
     $uid = $_GET['uid'];
     $shipArr = UserCompetenceModel::showCompetenceVisibleShip($uid);
     $powerAccountList = UserCompetenceModel::showCompetenceVisibleAccount($uid);
     //获取权限对应账号
     $powerPlatformList = UserCompetenceModel::getCompetenceVisiblePlat($uid);
     //获取权限对应平台
     $this->smarty->assign('uid', $uid);
     $this->smarty->assign('shipArr', $shipArr);
     $this->smarty->assign('shipingtypelist', $shipingtyplist);
     $this->smarty->assign('platformAccountList', $platformAccountList);
     $this->smarty->assign('powerAccountList', $powerAccountList);
     $this->smarty->assign('powerPlatformList', $powerPlatformList);
     $this->smarty->display("showUserCompense.htm");
 }
开发者ID:ohjack,项目名称:newErp,代码行数:21,代码来源:omAccount.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

示例4: view_showForm

 public function view_showForm()
 {
     global $memc_obj;
     $pagesize = 200;
     //页面大小
     $whereSql = $this->buildWhereSql();
     //echo $whereSql;exit;
     $packorder_obj = new PackingOrderModel();
     $rownumber = $packorder_obj->getRowAllNumber($whereSql . ' group by po.id ');
     //获得所有的行数
     $pager = new Page($rownumber, $pagesize);
     $billlist = $packorder_obj->getBillList($whereSql . ' group by po.id order by pd.pName ' . $pager->limit);
     //更具条件获得发货单
     $packorder_obj->buildOrderinfo($billlist);
     /*
             //去除重复的
             $currentid = NULL;
             $prekey = 0;
             foreach ($billlist as $key=>$valbill){
                 if ($currentid == $valbill['id']) {
                 	$billlist[$prekey]['originOrderId'] .= ', '.$valbill['originOrderId'];
                 	unset($billlist[$key]);
                 }else {
                     $prekey = $key;
                     $currentid = $valbill['id'];
                 }
             }
     */
     $materInfo = CommonModel::getMaterInfoAll();
     //获取包材信息
     $materInfo = reverse_array($materInfo, 'pmName', 'id');
     $shipingtyplist = CommonModel::getShipingTypeList();
     //运输方式列表
     $shipingtyplist = reverse_array($shipingtyplist, 'carrierNameCn', 'id');
     $salesaccountlist = CommonModel::getSalesaccountList();
     //获取销售帐号
     $salesaccountlist = reverse_array($salesaccountlist, 'account', 'id');
     //print_r($salesaccountlist);exit;
     $platformList = CommonModel::getPlatformInfo();
     //获取平台帐号
     $platformList = reverse_array($platformList, 'platform', 'id');
     $this->smarty->assign('shipingtypelist', $shipingtyplist);
     $this->smarty->assign('salesaccountlist', $salesaccountlist);
     $this->smarty->assign('platformList', $platformList);
     foreach ($billlist as $key => $valbil) {
         $tracknumber = '';
         $str_info = OmAvailableModel::getTNameList("wh_order_tracknumber", "tracknumber", "where shipOrderId='{$valbil['id']}' and is_delete=0");
         if (!empty($str_info)) {
             $tracknumber = $str_info[0]['tracknumber'];
         }
         $billlist[$key]['tracknumber'] = $tracknumber;
         $originOrder_arr = array();
         $originOrder_str = '';
         $originOrder_info = OmAvailableModel::getTNameList("wh_shipping_order_relation", "originOrderId", "where shipOrderId='{$valbil['id']}'");
         if (!empty($originOrder_info)) {
             foreach ($originOrder_info as $originOrder) {
                 $originOrder_arr[] = $originOrder['originOrderId'];
             }
             $originOrder_str = implode(',', $originOrder_arr);
         }
         $billlist[$key]['originOrder'] = $originOrder_str;
         //运输方式
         $billlist[$key]['shipingname'] = $shipingtyplist[$valbil['transportId']];
         //包材
         $billlist[$key]['materName'] = $materInfo[$valbil['pmId']];
         //平台
         $billlist[$key]['platformName'] = $platformList[$valbil['platformId']];
         //销售账号
         $billlist[$key]['salesaccountinfo'] = $salesaccountlist[$valbil['accountId']];
     }
     if ($rownumber > $pagesize) {
         //分页
         $pagestr = $pager->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $pagestr = $pager->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('pagestr', $pagestr);
     $this->smarty->assign('billlist', $billlist);
     //发货单列表
     $this->smarty->assign('secnev', 3);
     $libstu_obj = new LibraryStatusModel();
     //出库状态类型
     $libstatuslist = $libstu_obj->getAllLibStatusList(' and groupId in (4 ,5)');
     $this->smarty->assign('outstatuslist', $libstatuslist);
     $toptitle = '订单查询';
     //头部title
     $this->smarty->assign('toptitle', $toptitle);
     $storeId = isset($_GET['storeId']) ? intval($_GET['storeId']) : 0;
     if ($storeId == 1) {
         $navlist = array(array('url' => '', 'title' => '出库'), array('url' => '', 'title' => '发货单查询'), array('url' => '', 'title' => 'A仓发货单'));
     } elseif ($storeId == 2) {
         $navlist = array(array('url' => '', 'title' => '出库'), array('url' => '', 'title' => '发货单查询'), array('url' => '', 'title' => 'B仓发货单'));
     } else {
         $navlist = array(array('url' => '', 'title' => '出库'), array('url' => '', 'title' => '发货单查询'));
     }
     $this->smarty->assign('navlist', $navlist);
     $toplevel = 2;
     //一级菜单的序号  0 开始
     $this->smarty->assign('toplevel', $toplevel);
     $secondlevel = isset($_GET['secondlevel']) ? trim($_GET['secondlevel']) : '';
//.........这里部分代码省略.........
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:dispatchBillQuery.view.php


注:本文中的CommonModel::getShipingTypeList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。