You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
931 B
PHP
30 lines
931 B
PHP
<?php
|
|
|
|
class MultiAreaSelectModalWidget extends ZcWidget {
|
|
/**
|
|
* @var PurchaseOrderService
|
|
*/
|
|
private $purchaseOrderService;
|
|
|
|
private $mallId;
|
|
|
|
public function __construct() {
|
|
$this->purchaseOrderService = Zc::singleton(PurchaseOrderService::class);
|
|
|
|
$this->mallId = $_SESSION[SessionConst::mallId];
|
|
}
|
|
|
|
public function render($renderData = '') {
|
|
if (empty($renderData['provinceList'])) {
|
|
$renderData['provinceList'] = $this->purchaseOrderService->getProvinceWithCityCountListForMultiAreaSelect();
|
|
}
|
|
if (empty($renderData['orderProcessAreaContent'])) {
|
|
$purchaseSetting = $this->purchaseOrderService->getPurchaseSetting($this->mallId);
|
|
$renderData['orderProcessAreaContent'] = $purchaseSetting['orderProcessAreaContent'];
|
|
}
|
|
|
|
|
|
return $this->renderFile('order/multi_area_select_modal', $renderData);
|
|
}
|
|
|
|
} |