本文整理匯總了PHP中CommonModel::getShipingAbbrNameById方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonModel::getShipingAbbrNameById方法的具體用法?PHP CommonModel::getShipingAbbrNameById怎麽用?PHP CommonModel::getShipingAbbrNameById使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonModel
的用法示例。
在下文中一共展示了CommonModel::getShipingAbbrNameById方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: view_printGroupOrder2
public function view_printGroupOrder2()
{
$groupsn = isset($_GET['groupsn']) ? trim($_GET['groupsn']) : 0;
if (empty($groupsn)) {
echo "請指定配貨清單!";
exit;
}
$group_list = OmAvailableModel::getTNameList("wh_shipping_order_group", "*", "where shipOrderGroup='{$groupsn}' order by id asc");
if (!$group_list) {
echo "該配貨清單不存在!";
exit;
}
$time = time();
$userName = $_SESSION['userName'];
//更新今日清單打印表
OmAvailableModel::updateTNameRow("wh_shipping_order_group_print", "set status='1',orderPrintUser='{$userName}',orderPrintTime='{$time}'", "where shipOrderGroup='{$groupsn}'");
//獲取訂單對應的車號
$orderids = array();
foreach ($group_list as $group) {
if (!isset($orderids[$group['shipOrderId']])) {
$orderids[$group['shipOrderId']] = $group['carNumber'];
}
}
$o_arr = array();
foreach ($orderids as $order => $car_number) {
$o_arr[] = $order;
}
$oids = implode(',', $o_arr);
$po_obj = new PackingOrderModel();
$ordersinfo = $po_obj->getaSetOfOrderInfo($oids);
if (empty($ordersinfo)) {
$data = array('data' => array('沒有可打印內容!'), 'link' => 'index.php?mod=orderWaitforPrint&act=printList');
goErrMsgPage($data);
exit;
}
$sod_obj = new ShipingOrderDetailModel();
$acc_id_arr = array();
foreach ($ordersinfo as &$orinfval) {
$locationinfo = array();
$totalnum = 0;
$package_type = '';
$iscard = '';
$skulisttemp = $sod_obj->getAllSkuListByOrderId($orinfval['id'], "order by pName,combineSku");
$totalnum = $skulisttemp['totalnum'];
$locationinfo = $skulisttemp['skuinfo'];
if (isset($locationinfo['notcombine']) && count($locationinfo['notcombine']['info']) == 1) {
$package_type = $skulisttemp['packagetype'];
}
$iscard = printLabelModel::checkprintcard($orinfval['id']);
$pmNameStr = CommonModel::getMaterInfoById($orinfval['pmId']);
$orinfval['finalposition'] = $locationinfo;
$totalStr = $totalnum . " " . $pmNameStr . " " . $orinfval['calcWeight'] . "KG";
if (!empty($package_type)) {
$totalStr = $totalStr . " " . $package_type;
}
if (!empty($iscard)) {
$totalStr = $totalStr . " " . $iscard;
}
$totalStr = $totalStr . " " . $orinfval['platformUsername'];
$carrier = CommonModel::getShipingNameById($orinfval['transportId']);
$orinfval['abbrshipname'] = CommonModel::getShipingAbbrNameById($orinfval['transportId']);
$orinfval['totalStr'] = $totalStr;
$orinfval['notes'] = $po_obj->getOrderNotesInfo($orinfval['id']);
$orinfval['countryZh'] = CommonModel::getCountryNameCn($orinfval['countryName']);
$orinfval['partionFromAddress'] = printLabelModel::getPartionFromAddress($orinfval['id'], $carrier, $orinfval['countryName']);
if (!in_array($orinfval['accountId'], $acc_id_arr)) {
array_push($acc_id_arr, $orinfval['accountId']);
}
}
$salesaccountinfo = CommonModel::getAccountInfo($acc_id_arr);
$this->smarty->assign('salesaccountinfo', $salesaccountinfo);
$totalCount = count($ordersinfo);
$this->smarty->assign('totalCount', $totalCount);
$this->smarty->assign('orderids', $orderids);
$this->smarty->assign('ordersinfo', $ordersinfo);
$this->smarty->display('label50x100_22.htm');
}
示例2: printDispatchOrder
//.........這裏部分代碼省略.........
} else {
if ($totalweight < 2) {
$weightmark = 'E';
$ordershipfee = rand(1001, 2000) / 100;
} else {
$weightmark = '超重';
}
}
}
$orinfval['ordershipfee'] = number_format($ordershipfee / $detailcount, 2);
$orinfval['titleinfo'] = implode('<br />', $goods_title);
$orinfval['totalweight'] = $totalweight;
$orinfval['weightmark'] = $weightmark;
$salesaccountinfo = CommonModel::getAccountNameById($orinfval['accountId']);
$orinfval['appname'] = $salesaccountinfo['appname'];
}
$pmNameStr = CommonModel::getMaterInfoById($orinfval['pmId']);
$orinfval['pmNameStr'] = $pmNameStr;
$orinfval['finalposition'] = $locationinfo;
//$carrier = CommonModel::getShipingNameById($orinfval['transportId']);
$orinfval['carrier'] = $carrier;
$orinfval['totalnum'] = $totalnum;
$orinfval['package_type'] = $package_type;
if ($type == 1 || $type == 6) {
//標簽打印-50*100處理
$totalStr = $totalnum . " " . $pmNameStr . " " . $orinfval['calcWeight'] . "KG";
if (!empty($package_type)) {
$totalStr = $totalStr . " " . $package_type;
}
if (!empty($iscard)) {
$totalStr = $totalStr . " " . $iscard;
}
$totalStr = $totalStr . " " . $orinfval['platformUsername'];
$orinfval['abbrshipname'] = CommonModel::getShipingAbbrNameById($orinfval['transportId']);
//$orinfval['channelname'] = ShipingTypeModel::getChannelNameByIds($orinfval['transportId'], $orinfval['channelId']);
//$orinfval['channelname'] = CommonModel::getChannelNameByIds($orinfval['transportId'], $orinfval['countryName']);
$orinfval['totalStr'] = $totalStr;
$orinfval['notes'] = $po_obj->getOrderNotesInfo($orinfval['id']);
$orinfval['countryZh'] = CommonModel::getCountryNameCn($orinfval['countryName']);
$orinfval['partionFromAddress'] = printLabelModel::getPartionFromAddress($orinfval['id'], $carrier, $orinfval['countryName']);
}
if ($type == 9) {
//部分包貨打印-50*100處理
$countryZh = CommonModel::getCountryNameCn($orinfval['countryName']);
$isLast = printLabelModel::adjustIsLast($orinfval['id']);
//是否是最後一個配貨單
$doneOrder = printLabelModel::getAllOriginOrderId($orinfval['id']);
$streetInfo = "<br>" . $orinfval['username'] . "<br>" . $orinfval['street'] . "<br>" . $orinfval['state'] . "<br>" . $orinfval['zipCode'] . "<br>" . $orinfval['countryName'] . "(" . $countryZh . ")";
if (!empty($doneOrder)) {
$doneStr = "<br>包含配貨單單號:" . $doneOrder;
} else {
$doneStr = '';
}
if ($isLast && empty($doneStr)) {
$orinfval['packinglog'] = "第一個包裹,全部打印";
$orinfval['streetInfo'] = $streetInfo;
} elseif ($isLast && !empty($doneStr)) {
$orinfval['packinglog'] = "最後一個包裹,全部打印" . $doneStr;
$orinfval['streetInfo'] = $streetInfo;
} elseif (!$isLast && empty($doneStr)) {
$orinfval['packinglog'] = "第一個包裹,部分打印";
$orinfval['streetInfo'] = '';
} else {
$orinfval['packinglog'] = "分包裹,部分打印" . $doneStr;
$orinfval['streetInfo'] = '';
}