예제 #1
0
	public function find($projectId,Project_Models_Project $project)
	{
		$resultSet = $this->getDbTable()->find($projectId);

		if (0 == count($resultSet)) {

			return;
		}

		$row = $resultSet->current();

		$project->setProjectId($row->projectId)
				->setName($row->name)
				->setAddress($row->address)
				->setStatus($row->status)
				->setStructype($row->structype)
				->setLevel($row->level)
				->setPeriod($row->period)
				->setStartDate($row->startDate)
				->setContactId($row->contactId)
				->setConstructor($row->constructor)
				->setContractor($row->contractor)
				->setSupervisor($row->supervisor)
				->setDesigner($row->designer)
				->setLicense($row->license)
				->setAmount($row->amount)
				->setConstrArea($row->constrArea)
				->setRemark($row->remark)
				->setCTime($row->cTime);
		$contacts = new Employee_Models_ContactMapper();
		$contactName = $contacts->findContactName($project->getContactId());
		$project->setContactName($contactName);
	}