当前位置: 首页>>代码示例>>PHP>>正文


PHP database1::getPxRevenueDaily_opd_dept方法代码示例

本文整理汇总了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>
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:revenuePie.php


注:本文中的database1::getPxRevenueDaily_opd_dept方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。