コード例 #1
0
 private function doReleaseTask($ticketIds, InspectGroup $group)
 {
     /*{{{*/
     $tickets = DAL::get()->find('Ticket', $ticketIds);
     $ticketIds = array();
     $taskIds = array();
     foreach ($tickets as $ticket) {
         $ticketIds[] = $ticket->id;
         $taskIds[] = $ticket->source->id;
         if ($ticket->inspector->isNull()) {
             return false;
         }
         if ($ticket->inspectGroup instanceof InitialInspectGroup && $ticket->inspectGroup->isService()) {
             $appendTickets = InspectClient::getInstance()->getRelatedBindTicketList($ticket->source->patient, $ticket->inspector, InitialInspectGroup::getInitialHidden());
             foreach ($appendTickets as $a) {
                 $ticketIds[] = $a->id;
                 $taskIds[] = $a->source->id;
             }
         }
     }
     InspectClient::getInstance()->releaseSpecificTicket($ticketIds, $this->curInspector);
     InspectTaskClient::getInstance()->releaseInspector($taskIds, $this->curInspector, $group);
     $tasks = DAL::get()->find('inspecttask', $taskIds);
     foreach ($tasks as $task) {
         $logContent = $ticket->inspector->realName . "的任务";
         $logContent .= " 任务id:{$task->id}";
         S3LogClient::getInstance()->add($this->curInspector, $task->source->patient->getLogable()->action(PatientLog::ACTION_RELEASE_TASK, $logContent));
     }
     return true;
 }
コード例 #2
0
    <div class="pt10 pb20 clearfix tc">
<?php 
$count = 0;
foreach ($sortGroupList as $key => $groups) {
    $count++;
    $fenzhensix = '';
    ?>
<div style="height:50px">
<?php 
    foreach ($groups as $buInspectGroup) {
        if ($buInspectGroup->isNull()) {
            continue;
        }
        ?>
    <?php 
        if (InitialInspectGroup::canOptLiuzuBtn($buInspectGroup, $group)) {
            ?>
    <?php 
            $fenzhensix = $buInspectGroup->getNormal()->id;
            ?>
    <span class="point check_box" id="fenzhensix" style='margin-right:30px;background-color:#ccc'>
        <input type="checkbox" class="none" value="<?php 
            echo $buInspectGroup->getNormal()->id;
            ?>
" name="buGroupIds[]" />
        <span class=""><?php 
            echo $buInspectGroup->displayName;
            ?>
</span>
    </span>
    <?php