Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     role::check('card_system_manage');
     $this->salesChannelDao = MySalesChannel_Core::instance();
     $this->cardIssueSerialDao = MyCardIssueSerial_Core::instance();
     $this->cardLogDao = MyCardLog_Core::instance();
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     role::check('card_system_manage');
     $this->salesChannelDao = MySalesChannel_Core::instance();
     $this->issueBillDao = MyIssueBill_Core::instance();
     $this->issueBillDtlDao = MyIssueBillDtl_Core::instance();
     $this->openBillDao = MyOpenBill_Core::instance();
     $this->issueBillDtlDao = MyOpenBillDtl_Core::instance();
     $orderby_arr = array(0 => array('id' => 'DESC'), 1 => array('id' => 'ASC'), 2 => array('order' => 'ASC'), 3 => array('order' => 'DESC'));
     $orderby = controller_tool::orderby($orderby_arr);
     $query_struct = array('where' => array(), 'orderby' => $orderby);
     $query_struct['where']['flag'] = 2;
     $this->salesChanenlList = $this->salesChannelDao->lists($query_struct);
     $this->salesChannelMap = array();
     foreach ($this->salesChanenlList as $aChannel) {
         $this->salesChannelMap[$aChannel['id']] = $aChannel;
     }
 }