Пример #1
0
            </td>
            <td style="width:8%">
                跟进结果
            </td>
            <td style="width:8%">
                状态
            </td>
            <td style="width:8%">
               更新时间 
            </td>
            <td style="width:6%">
                编辑
            </td>
        </tr>
<?php 
            $taskListAfterFormat = FollowupSchemeClient::getInstance()->formatSchemeTaskList($taskList[$smallCategory->id]);
            foreach ($taskListAfterFormat as $schemeId => $taskAfterFormat) {
                $scheme = DAL::get()->find('FollowupScheme', $schemeId);
                foreach ($taskAfterFormat as $task) {
                    ?>
        <tr>
            <td>
                <?php 
                    echo $task->reason;
                    ?>
            </td>
            <td>
                <?php 
                    echo $task->processMode;
                    ?>
            </td>
 public function editStateSummary($request, $response)
 {
     /*{{{*/
     $summaryId = $request->summaryid;
     $ownerId = $request->ownerid;
     $startTime = $request->starttime;
     $endTime = $request->endtime;
     $title = $request->title;
     $estimate = $request->estimate;
     $suggest = $request->suggest;
     $summaryItemInfoArr = $request->edititeminfoarr;
     FollowupSchemeClient::getInstance()->editStateSummary($summaryId, $ownerId, $title, $estimate, $suggest, $summaryItemInfoArr);
     $response->setRedirect($response->router->urlfor('followup/followupreportlist', array('signinId' => $ownerId)));
 }
            $summary = $smallCategory->getSummary($followupOwner->id);
            if (false == $summary->isNull()) {
                $summaryId = $summary->id;
                $saveSummaryType = 'update';
            }
            ?>
    <div style="margin:5px;">
        <?php 
            echo $smallCategory->name;
            ?>
        <span class='showcategorycomment' style='color: #999999;'><?php 
            echo $smallCategory->getSummaryComment($followupOwner->id);
            ?>
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class='editcomment' style='cursor:pointer'>编辑备注</a>
            <?php 
            $res = FollowupSchemeClient::getInstance()->hasWaitingSchemeAndFinishAllNfsTasks($smallCategory->id, $followupOwnerId);
            if ($res['count'] == 0 && $res['duehour'] != FollowupSchemeTpl::DUEHOUR_NONFSTASK) {
                ?>
                <span style="color:red; font-weight:bold;">new!</span>
            <?php 
            }
            ?>
    <span class='commentspan'>
        <textarea type='text' name='comment' style="width: 382px; height: 57px;" class='categorycomment' ><?php 
            echo $smallCategory->getSummaryComment($followupOwner->id);
            ?>
</textarea>
        <input type='button' class='savesummary'  value='保存'/>
        <input type='hidden' class='categoryId'  value='<?php 
            echo $smallCategory->id;
            ?>