/**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\WarehouseEntranceClaimReport
  */
 protected function makeBean($resultset)
 {
     return WarehouseEntranceClaimReportFactory::createFromArray($resultset);
 }
 /**
  *
  * @return array
  */
 public function createAction()
 {
     if ($this->getRequest()->isPost()) {
         $params = $this->getRequest()->getParams();
         try {
             $this->getWarehouseEntranceClaimReportCatalog()->beginTransaction();
             $warehouseEntranceClaimReport = WarehouseEntranceClaimReportFactory::createFromArray($params);
             $warehouseEntranceClaimReport->setStatus(WarehouseEntranceClaimReport::$Status['Open']);
             $this->getWarehouseEntranceClaimReportCatalog()->create($warehouseEntranceClaimReport);
             $this->getWarehouseEntranceClaimReportCatalog()->commit();
             $this->setFlash('ok', $this->i18n->_("The Claim Report has been created"));
         } catch (Exception $e) {
             $this->getWarehouseEntranceClaimReportCatalog()->rollBack();
             $this->setFlash('error', $this->i18n->_($e->getMessage()));
         }
     }
     $this->_redirect('warehouse-entrance-claim-report/edit/id/' . $warehouseEntranceClaimReport->getIdWarehouseEntranceQuarantineClaimReport());
 }