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


PHP database2::getPatientChargesToEdit方法代码示例

本文整理汇总了PHP中database2::getPatientChargesToEdit方法的典型用法代码示例。如果您正苦于以下问题:PHP database2::getPatientChargesToEdit方法的具体用法?PHP database2::getPatientChargesToEdit怎么用?PHP database2::getPatientChargesToEdit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在database2的用法示例。


在下文中一共展示了database2::getPatientChargesToEdit方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: count

<?php

include "../../../myDatabase2.php";
$itemNo = $_GET['itemNo'];
$countItem = count($itemNo);
$registrationNo = $_GET['registrationNo'];
$mode = $_GET['mode'];
$ro = new database2();
if ($mode == "cash2company1") {
    for ($x = 0; $x < $countItem; $x++) {
        $ro->getPatientChargesToEdit($itemNo[$x]);
        $totalTransfer = $ro->selectNow("patientCharges", "company1", "itemNo", $itemNo[$x]) + $ro->patientCharges_cashUnpaid();
        $ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "company1", $totalTransfer);
        $ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "cashUnpaid", 0);
    }
} else {
    if ($mode == "company1_to_cash") {
        for ($x = 0; $x < $countItem; $x++) {
            $ro->getPatientChargesToEdit($itemNo[$x]);
            $totalTransfer = $ro->selectNow("patientCharges", "company1", "itemNo", $itemNo[$x]) + $ro->patientCharges_cashUnpaid();
            $ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "cashUnpaid", $totalTransfer);
            $ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "company1", 0);
        }
    } else {
        if ($mode == "company2company1") {
            for ($x = 0; $x < $countItem; $x++) {
                $ro->getPatientChargesToEdit($itemNo[$x]);
                $totalTransfer = $ro->selectNow("patientCharges", "company1", "itemNo", $itemNo[$x]) + $ro->patientCharges_company();
                $ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "company1", $totalTransfer);
                $ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "company", 0);
            }
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:transferNow.php

示例2:

<?php

include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$targetAmount = $_GET['targetAmount'];
$ro = new database2();
$itemz = preg_split("/\\_/", $ro->getMaximumTotal_rBanny($registrationNo, "Room and Board"));
$ro->getPatientChargesToEdit($itemz[1]);
if ($ro->getTotal("cashUnpaid", "Room And Board", $registrationNo) > 0) {
    echo "<br><Br><br><br><br>";
    echo "<font color=red>R-Banny is now Calculating Room</font><br>";
    echo "Total:&nbsp;" . $itemz[0];
    echo "<br>";
    echo "Item#:&nbsp;" . $itemz[1];
    if ($targetAmount >= $itemz[0]) {
        $ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", "0");
        $ro->editNow("patientCharges", "itemNo", $itemz[1], "Company", "0");
        $ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $itemz[0]);
    } else {
        //echo "<br><Br><br><br><font color=blue size=5>R-Banny is Having a trouble in Computation</font>";
        $newCash = $itemz[0] - $targetAmount;
        $newPHIC = $ro->selectNow("patientCharges", "total", "itemNo", $itemz[1]) - $newCash;
        $ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", $newCash);
        $ro->editNow("patientCharges", "itemNo", $itemz[1], "Company", "0");
        $ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $newPHIC);
    }
    $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/rBanny/consumedRoom.php?registrationNo={$registrationNo}&targetAmount={$targetAmount}");
} else {
    $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/rBanny/consumedMeds.php?registrationNo={$registrationNo}&targetAmount={$targetAmount}");
}
开发者ID:rickyx12,项目名称:protacio,代码行数:30,代码来源:consumedRoom.php

示例3:

<?php

include "../../myDatabase2.php";
$itemNo = $_GET['itemNo'];
$username = $_GET['username'];
$ro = new database2();
$ro->coconutDesign();
$ro->getPatientChargesToEdit($itemNo);
echo "<br><Br><center><font color=red>\n" . $ro->patientCharges_Description() . "\n</font><Br></center>";
$ro->coconutFormStart("get", "hmoPrice1.php");
$ro->coconutHidden("itemNo", $itemNo);
$ro->coconutBoxStart("500", "100");
echo "<br>";
echo "<table border=0>";
echo "<tR>";
echo "<Td>HMO Price&nbsp;</tD>";
echo "<td>";
$ro->coconutTextBox("hmoPrice", $ro->selectNow("patientCharges", "hmoPrice", "itemNo", $itemNo));
echo "</td>";
echo "</tr>";
echo "<tR>";
echo "<Td>Company&nbsp;</tD>";
echo "<td>";
$ro->coconutTextBox("company", $ro->selectNow("patientCharges", "company", "itemNo", $itemNo));
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<Br><BR>";
$ro->coconutButton("Proceed");
$ro->coconutBoxStop();
$ro->coconutFormStop();
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:hmoPrice.php


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