Esempio n. 1
0
 public function create_agree_date($work_info)
 {
     global $_lang, $_K;
     $agree_title = $this->_task_title . '-' . $work_info['work_id'];
     $agree_id = keke_task_agreement::create_agreement($agree_title, $this->_model_id, $this->_task_id, $work_info['work_id'], $this->_guid, $work_info['uid']);
     $a_url = '<a href="' . $_K['siteurl'] . '/index.php?do=agreement&taskId=' . $this->_task_id . '&agreeId=' . $agree_id . '">' . $agree_title . '</a>';
     $notice = $_lang['task_in_jf_stage'];
     $s_arr = array($_lang['agreement_link'] => $a_url, $_lang['agreement_status'] => $notice);
     $b_arr = array($_lang['agreement_link'] => $a_url, $_lang['agreement_status'] => $notice);
     $this->notify_user("agreement", '任务进入交付阶段', $s_arr, 1, $work_info['uid']);
     $this->notify_user("agreement", $_lang['task_in_jf_stage'], $b_arr, 2, $this->_guid);
     return $agree_id;
 }
 public function __construct($agree_id)
 {
     parent::__construct($agree_id);
 }