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.
24 lines
747 B
PHP
24 lines
747 B
PHP
<?php
|
|
class OrderListColumnSettingWidget extends ZcWidget {
|
|
/**
|
|
* @var OrderPrintService
|
|
*/
|
|
private $orderPrintService;
|
|
|
|
public function __construct() {
|
|
$this->orderPrintService = Zc::singleton('OrderPrintService');
|
|
}
|
|
|
|
public function render($data = array()) {
|
|
$mallId = $_SESSION[SessionConst::mallId];
|
|
$subAccountId = $_SESSION[SessionConst::mallSubAccountId] ?: 0;
|
|
if (empty($data['opSetting'])) {
|
|
$data['opSetting'] = $this->orderPrintService->getUserOpSetting($mallId);
|
|
}
|
|
if (empty($data['opPageSetting'])) {
|
|
$data['opPageSetting'] = $this->orderPrintService->getUserOpPageSetting($mallId, $subAccountId);
|
|
}
|
|
|
|
return $this->renderFile('order/order_list_column_setting', $data);
|
|
}
|
|
} |