public function adminAddTask($request, $response) { /*{{{*/ $request->convertToGbk(); $doctorPatientRef = DAL::get()->find('DoctorPatientRef', $request->id); $group = $doctorPatientRef->getInspect4Sale(); $taskLevel = $request->tasklevel; $comment = $request->taskcomment; $task = InspectTaskClient::getInstance()->createTask($doctorPatientRef, $this->curInspector, $group->id, $taskLevel, '', InspectTask::SRC_FLOW, $comment); $content = "生成销售任务"; DoctorPatientPostClient::getInstance()->addDoctorPatientLog($doctorPatientRef, $this->curInspector->user, DoctorPatientLog::TYPE_TASK_TICKET, $content, $doctorPatientPost = new nullEntity()); return parent::DIRECT_OUTPUT; }
public function taskListChangeInspector($request, $response) { /*{{{*/ $inspector = DAL::get()->mustFind('Inspector', $request->inspectorid); InspectTaskClient::getInstance()->modifyInspector($request->taskids, $inspector); return $this->goBackUrl($request, $response); }