public function mvUsecasesPost($request, $response) { $fromfunpointid = $request->fromfunpointid; $tofunpointid = $request->tofunpointid; $usecaseids = $request->usecaseids; $funpoint = Funpoint::getById($fromfunpointid); $url = 'usecase/listoffunpoint4mv'; if($fromfunpointid == $tofunpointid) { $preMsg = '挪移失败,功能没有变化'; }elseif(empty($usecaseids)) { $preMsg = '挪移失败,没有选用例'; }else { $preMsg = '挪移过来一批用例:'.implode(',', $usecaseids); UsecaseClient::getInstance()->mvUsecases($usecaseids,$tofunpointid); $funpoint = Funpoint::getById($tofunpointid); $url = 'usecase/listoffunpoint'; } $response->setRedirect($response->router->urlfor($url, array('funpointid'=>$funpoint->id, 'preMsg'=>$preMsg))); }
模块<?=$programId_i.'.'.$moduleId_i?>:<?=$aModule->name?> <?php } ?> </span> <?php if( $aModule->id != $taskItem->usecase->funpoint->module->id){ echo $testTask->getSumInfoStr4Module($arr2); echo '</div>'; continue; }else{ echo $testTask->getSimpleSumInfoStr4Module($arr2); } ?> <?php $funpoint_i = 0; foreach($arr2 as $funpointId => $arr3){ $aFunpoint = Funpoint::getById($funpointId); $funpoint_i ++; ?> <div class='greenBorderDiv' fid=<?=$funpointId?> > <span style='font-weight:bold;'> <?php if($aFunpoint->id != $taskItem->usecase->funpoint->id){ ?> <a href='/taskitem/next?testTaskId=<?=$testTask->id ?>&funpointId=<?=$funpointId ?>'>功能点<?=$programId_i.'.'.$moduleId_i.'.'.$funpoint_i;?>:<?=$aFunpoint->name?></a> <?php }else{ ?> 功能点<?=$programId_i.'.'.$moduleId_i.'.'.$funpoint_i;?>:<?=$aFunpoint->name?> <?php }?> </span> <?php echo $testTask->getSumInfoStr4Funpoint($arr3);?> <?php if( $aFunpoint->id != $taskItem->usecase->funpoint->id){ echo '</div>'; continue;