示例#1
0
					<th id='billing_popup_specimen_type'>Specimen Type</th>
					<th id='billing_popup_cost'>Test Cost</th>
					<th id='billing_popup_select' style='width: 110px;'>Select for Billing</th>
				</tr>
			</thead><?php 
    foreach ($tests as $test) {
        $test = Test::getById($test['test_id']);
        // We only loaded an id and timestamp, and we want more information.
        $specimen = Specimen::getById($test->specimenId);
        $testHasBeenBilled = Bill::hasTestBeenBilled($test->testId, $_SESSION['lab_config_id']);
        if ($testHasBeenBilled) {
            $style_string = "style='background-color:grey; color:white;'";
        } else {
            $style_string = "";
        }
        $cost = get_cost_of_test($test);
        ?>
<tr>
				<td <?php 
        echo $style_string;
        ?>
><?php 
        echo date("Y-m-d", strtotime($test->timestamp));
        ?>
</td>
				<td <?php 
        echo $style_string;
        ?>
><?php 
        echo get_test_name_by_id($test->testTypeId);
        ?>
示例#2
0
文件: db_lib.php 项目: caseyi/BLIS
 public function getCostOfTest()
 {
     $test = Test::getById($this->testId);
     $cost = get_cost_of_test($test);
     $cost = $cost['amount'];
     return floatVal($cost);
 }