</table>
               <span class="fb f16">新增跟进记录</span>
               <table id="incident<?php 
echo $incident->id;
?>
" cellpadding="0" cellspacing="0" border="0" class="" style="margin:5px;width:100%;">
               <input type="hidden" id="incidentId" value="<?php 
echo $incident->id;
?>
" name="incidentId" />

               <tr>
               <th>紧急度:</th>
               <td>
               <?php 
echo HtmlControl::getRadioCtrImp(IncidentState::getEmergencyLevelDefines(), "vars[incident][{$incident->id}][emergencyLevel]", '', '&nbsp;&nbsp;&nbsp;');
?>
</td>
</tr>

<tr>
<th title="1-5分,分数越过影响越大,1分代表对日常生活(如吃饭、睡觉、工作、家务等)没有影响,5分代表无法正常生活">对生活影响:</th>
<td>
<?php 
echo HtmlControl::getRadioCtrImp(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5), "vars[incident][{$incident->id}][impactLevel]", '', '&nbsp;&nbsp;&nbsp;');
?>
</td>
</tr>

<tr>
<th title="1-5分,分数越高越在意,1分代表患者不在意,如果我们不问起就当没这回事,5分代表特别在意,几乎时时刻刻想着这个症状。">在意程度:</th>
<br> 
<div class="buttom">
<div class="p10 m5" style="background:#E9F0F3; border:1px solid #487284; text-align:center;">
<span class="fb f16">步骤修改</span>
</div>
<form action="/incident/modifyincidentstatepost" method="post">
<input type="hidden" name="incidentStateId" value="<?php 
echo $incidentState->id;
?>
">
<table cellpadding="0" cellspacing="0" border="0" class="" style="margin:5px;width:100%;">
    <tr>
        <th>紧急度:</th>
        <td colspan="3">
        <?php 
echo HtmlControl::getRadioCtrImp(IncidentState::getEmergencyLevelDefines(), 'vars[emergencyLevel]', $incidentState->emergencyLevel, '&nbsp;&nbsp;&nbsp;');
?>
        </td>
    </tr>

    <tr>
        <th>对生活影响:</th>
        <td>
        <?php 
echo HtmlControl::getRadioCtrImp(array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5), 'vars[impactLevel]', $incidentState->impactLevel, '&nbsp;&nbsp;&nbsp;');
?>
        </td>
    </tr>

    <tr>
        <th>在意程度:</th>
Ejemplo n.º 3
0
 public function modifyIncidentStatePost($request, $response)
 {
     $incidentState = DAL::get()->find('IncidentState', $request->incidentStateId);
     $params = $request->vars;
     if (isset($params['healthDiary']) && $params['healthDiary']) {
         $str = '';
         $emergDesc = IncidentState::getEmergencyLevelDefines();
         $str .= '紧急度:' . $emergDesc[$params['emergencyLevel']] . "\n";
         $str .= '对生活的影响:' . $params['impactLevel'] . "\n";
         $str .= '在意程度:' . $params['careLevel'] . "\n";
         $str .= '描述:' . $params['content'];
         HealthDiaryClient::getInstance()->updateDiary($incidentState->healthdiary->id, $str);
     }
     IncidentClient::getInstance()->modifyIncidentState($incidentState->id, $params);
     $preMsg = "事件跟进 " . $incidentState->id . " 修改成功";
     $response->setRedirect($response->router->urlfor('incident/modifyincidentstate', array('incidentStateId' => $incidentState->id, 'preMsg' => $preMsg)));
 }