Exemplo n.º 1
0
&followupCustomerId=<?php 
                echo $customerId;
                ?>
&userName=<?php 
                echo $userName;
                ?>
&auditorRoleId=<?php 
                echo $auditorRoleId;
                ?>
&type=<?php 
                echo $type;
                ?>
" class="addnfssubtask"><span class="red f15">新增子任务</span></a>
                        <?php 
            }
            $nfsSubTasks = NfsSubTask::getAllSubTasksByTaskOrderByLogType($task->id, NfsSubTaskLog::Type_JiHua);
            //                        $nfsSubTasks = NfsSubTask::getAllSubTaskByTask($task->id);
            if (false == empty($nfsSubTasks)) {
                foreach ($nfsSubTasks as $nfsSubTask) {
                    $nfsSubTaskArr[$nfsSubTask->id] = $nfsSubTask;
                    $followupCustomer = $nfsSubTask->followupCustomer;
                    ?>
                        <table cellpadding="0" cellspacing="0" border="1" class="adminlist" style="margin:5px;width:98%;">
                        <tr>
                        <th style="background-color: #FCEDDA">类型:</th>
                        <td>
                        <?php 
                    echo $nfsSubTask->getTypeDesc();
                    ?>
                        </td>
 private function modifyNfsSubTaskLogPostImp($nfsSubTaskLog, $params)
 {
     /*{{{*/
     if (isset($params['healthDiary']) && $params['healthDiary']) {
         $nfsSubTask = $nfsSubTaskLog->nfsSubTask;
         $typeDesc = NfsSubTask::getTypeDefines();
         $logTypeDesc = NfsSubTaskLog::getTypeDefines();
         $str = '';
         $str .= '子任务名称:' . $typeDesc[$nfsSubTask->type] . "\n";
         $str .= '子任务描述:' . $nfsSubTask->content . "\n";
         $str .= '子任务执行内容:' . $logTypeDesc[$params['type']] . "\n";
         $str .= '子任务log备注:' . $params['content'] . "\n";
         $str .= '子任务log执行时间:' . $params['theTime'] . "\n";
         HealthDiaryClient::getInstance()->updateDiary($nfsSubTaskLog->healthDiary->id, $str);
     }
     NfsSubTaskClient::getInstance()->modifyNfsSubTaskLog($nfsSubTaskLog->id, $params);
 }
Exemplo n.º 3
0
<table>
    <tr>
        <th>子任务类型:</th>
        <td>
        <?php 
//        echo HtmlControl::getRadioCtrImp(NfsSubTask::getTypeDefines(), 'vars[type]', '', '&nbsp;&nbsp;&nbsp;');
$nfsSubTaskTypes = NfsSubTask::getTypeDefines();
echo $nfsSubTaskTypes[$type];
?>
        </td>
    </tr>

    <?php 
$logTypes = NfsSubTaskLog::getTypeDefines();
$pinYinArr = NfsSubTaskLog::getTypePinYinDefines();
$arr = NfsSubTask::getAddNfsSubTaskLogTypesByType($type);
foreach ($arr as $a) {
    ?>

    <tr>
        <th>
        <input type="hidden" value="<?php 
    echo $a;
    ?>
" name="arrs[<?php 
    echo $pinYinArr[$a];
    ?>
]">
        <?php 
    echo $logTypes[$a];
    ?>