/** * 编辑工作经历 */ public function editAction() { $workDm = new PwWorkDm(); $workDm->setCompany($this->getInput('company', 'post')); $workDm->setStartTime($this->getInput('startYear', 'post'), $this->getInput('startMonth', 'post')); $workDm->setEndTime($this->getInput('endYear', 'post'), $this->getInput('endMonth', 'post')); $workDm->setUid($this->loginUser->uid); $workDs = $this->_getDs(); if (($result = $workDs->editWorkExperience($this->getInput('id', 'post'), $workDm)) instanceof PwError) { $this->showError($result->getError()); } $this->showMessage('USER:work.update.success'); }