예제 #1
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'schedule';
     $this->fields = array_merge($this->fields, array('content' => NULL, 'start' => NULL, 'end' => NULL, 'deadline' => NULL, 'hours_own' => NULL, 'hours_checked' => NULL, 'hours_bill' => NULL, 'all_day' => false, 'completed' => false, 'project' => NULL));
     unset($this->fields['type']);
 }
예제 #2
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'document';
     $this->fields = array_merge($this->fields, array('type' => 'document', 'filename' => '', 'extname' => '', 'size' => 0, 'comment' => NULL));
     $this->mod = true;
     $this->load->library('filetype');
 }
예제 #3
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'company';
     $this->recognize($this->input->server('SERVER_NAME'));
     //获取存在数据库中的公司配置项
     $this->db->from('company_config')->where('company', $this->id);
     $config = array_sub($this->db->get()->result_array(), 'value', 'name');
     array_walk($config, function (&$value) {
         $decoded = json_decode($value, true);
         if (!is_null($decoded)) {
             $value = $decoded;
         }
     });
     $this->config->company = $config;
 }
예제 #4
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'label';
 }
예제 #5
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'people';
     $this->fields = array_merge($this->fields, array('type' => 'people', 'character' => '个人', 'name_en' => NULL, 'abbreviation' => NULL, 'phone' => NULL, 'email' => NULL, 'gender' => NULL, 'id_card' => NULL, 'work_for' => NULL, 'position' => NULL, 'birthday' => NULL, 'city' => NULL, 'race' => NULL, 'staff' => NULL, 'comment' => NULL));
 }
예제 #6
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'account';
     $this->fields = array_merge($this->fields, array('type' => 'account', 'subject' => NULL, 'amount' => 0, 'received' => false, 'date' => $this->date->today, 'project' => NULL, 'count' => true, 'account' => NULL, 'people' => NULL, 'comment' => NULL));
 }
예제 #7
0
 function __construct()
 {
     parent::__construct();
     $this->table = 'project';
     $this->fields = array_merge($this->fields, array('type' => 'project', 'num' => NULL, 'active' => true, 'first_contact' => NULL, 'time_contract' => NULL, 'end' => NULL, 'quote' => NULL, 'focus' => NULL, 'summary' => NULL, 'comment' => NULL));
 }
예제 #8
0
 function __construct()
 {
     parent::__construct();
 }