本文整理汇总了PHP中database1::getPxRevenueDaily_opd_dept方法的典型用法代码示例。如果您正苦于以下问题:PHP database1::getPxRevenueDaily_opd_dept方法的具体用法?PHP database1::getPxRevenueDaily_opd_dept怎么用?PHP database1::getPxRevenueDaily_opd_dept使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database1
的用法示例。
在下文中一共展示了database1::getPxRevenueDaily_opd_dept方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PieChart
/**
* Pie chart demonstration
*
*/
include "../../../COCONUT/libchart/libchart/classes/libchart.php";
$chart = new PieChart();
$ro = new database1();
$dataSet = new XYDataSet();
$dataSet->addPoint(new Point("OPD (" . number_format($ro->getPxRevenueDaily_opd($fromMonth, $fromDay, $fromYear), 2) . ")", $ro->getPxRevenueDaily_opd($fromMonth, $fromDay, $fromYear)));
$dataSet->addPoint(new Point("IPD (" . number_format($ro->getPxRevenueDaily_ipd($fromMonth, $fromDay, $fromYear), 2) . ")", $ro->getPxRevenueDaily_ipd($fromMonth, $fromDay, $fromYear)));
$chart->setDataSet($dataSet);
$chart->setTitle("Collection Report For {$fromMonth} {$fromDay}, {$fromYear}");
$chart->render("../../../COCONUT/graphicalReport/chartList/dailyRevenue.png");
$chart1 = new PieChart();
$dataSet1 = new XYDataSet();
$dataSet1->addPoint(new Point("LABORATORY (" . number_format($ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "LABORATORY"), 2) . ")", $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "LABORATORY")));
$dataSet1->addPoint(new Point("RADIOLOGY (" . number_format($ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "RADIOLOGY"), 2) . ")", $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "RADIOLOGY")));
$dataSet1->addPoint(new Point("MEDICINE (" . number_format($ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "MEDICINE"), 2) . ")", $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "MEDICINE")));
$dataSet1->addPoint(new Point("SUPPLIES (" . number_format($ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "SUPPLIES"), 2) . ")", $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "SUPPLIES")));
$dataSet1->addPoint(new Point("NURSING FEE (" . number_format($ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "NURSING-CHARGES"), 2) . ")", $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "NURSING-CHARGES")));
$dataSet1->addPoint(new Point("MISCELLANEOUS (" . number_format($ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "MISCELLANEOUS"), 2) . ")", $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "MISCELLANEOUS")));
$dataSet1->addPoint(new Point("PROFESSIONAL FEE (" . number_format($ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "PROFESSIONAL FEE"), 2) . ")", $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "PROFESSIONAL FEE")));
$total = $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "LABORATORY") + $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "RADIOLOGY") + $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "MEDICINE") + $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "SUPPLIES") + $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "NURSING-CHARGES") + $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "MISCELLANEOUS") + $ro->getPxRevenueDaily_opd_dept($fromMonth, $fromDay, $fromYear, "PROFESSIONAL FEE");
$dataSet1->addPoint(new Point("TOTAL (" . number_format($total, 2) . ")", ""));
$chart1->setDataSet($dataSet1);
$chart1->setTitle("OPD Breakdown Collection Report For {$fromMonth} {$fromDay}, {$fromYear} ");
$chart1->render("../../../COCONUT/graphicalReport/chartList/dailyRevenue1.png");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>