public function editAction() 
	{
		$errorMsg = null;
		$editForm = new Pment_Forms_CppSave();
		$cpps = new Pment_Models_CppMapper();
		$editForm->submit->setLabel("保存修改");
		$editForm->submit2->setAttrib('class','hide');
		$projectId =$this->_getProjectId();
		$cppId = $this->_getParam('id',0);
		$cpps->populateCppDd($editForm);
		$editForm = $cpps->formValidator($editForm,1);

		if($this->getRequest()->isPost())
		{
			$formData = $this->getRequest()->getPost();
			if($editForm->isValid($formData))
			{
				$array = $cpps->dataValidator($formData,1);
				$trigger = $array['trigger'];
				$errorMsg = $array['errorMsg'];
				if($trigger == 0)
				{
					$cpp = new Pment_Models_Cpp();
					$cpp->setCppId($cppId);
					$cpp->setPostId($editForm->getValue('postId'));
					$cpp->setContactId($editForm->getValue('contactId'));
					$cpp->setProjectId($projectId);
					$cpp->setCertId($editForm->getValue('certId'));
					$cpp->setQualif($editForm->getValue('qualif'));
					$cpp->setStartDate($editForm->getValue('startDate'));
					$cpp->setResponsi($editForm->getValue('responsi'));
					$cpp->setRemark($editForm->getValue('remark'));
					$cpps->save($cpp);
					$this->_redirect('/pment/cpp');
					}
					else
					{
						$editForm->populate($formData);
						}
				}
				else
				{
					$editForm->populate($formData);
					}
		}
		else
		{
			if($cppId > 0)
			{
				$arrayCpp = $cpps->findArrayCpp($cppId);
				$editForm->populate($arrayCpp);
				}
			else
			{
				$this->_redirect('/pment/cpp');
				}
			}
	$this->view->errorMsg = $errorMsg;
	$this->view->editForm = $editForm;
	$this->view->id = $cppId;
	}