本文整理匯總了PHP中database1::getPatientChargesToEdit方法的典型用法代碼示例。如果您正苦於以下問題:PHP database1::getPatientChargesToEdit方法的具體用法?PHP database1::getPatientChargesToEdit怎麽用?PHP database1::getPatientChargesToEdit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類database1
的用法示例。
在下文中一共展示了database1::getPatientChargesToEdit方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: count
<?php
include "../../../myDatabase1.php";
$itemNo = $_GET['itemNo'];
$countz = count($itemNo);
$registrationNo = $_GET['registrationNo'];
$user = $_GET['username'];
$ro = new database1();
$ro->getPatientProfile($registrationNo);
for ($x = 0; $x < $countz; $x++) {
$ricky = preg_split("/\\_/", $itemNo[$x]);
// combine itemNo + total = itemNo_total_orNo
$ro->getPatientChargesToEdit($ricky[0]);
$ro->addVoidPayment($registrationNo . "_" . $ro->getPatientRecord_completeName(), $ricky[0] . "_" . $ro->patientCharges_Description(), $ro->patientCharges_cashPaid(), $ro->getSynapseTime(), date("Y-m-d"), $user, $ricky[2]);
$ro->editNow("patientCharges", "itemNo", $ricky[0], "status", "UNPAID");
$ro->editNow("patientCharges", "itemNo", $ricky[0], "orNo", "");
$ro->editNow("patientCharges", "itemNo", $ricky[0], "cashPaid", "0");
$ro->editNow("patientCharges", "itemNo", $ricky[0], "datePaid", "");
$ro->editNow("patientCharges", "itemNo", $ricky[0], "timePaid", "");
$ro->editNow("patientCharges", "itemNo", $ricky[0], "paidBy", "");
$ro->editNow("patientCharges", "itemNo", $ricky[0], "cashUnpaid", $ricky[1]);
$ro->editNow("registrationDetails", "registrationNo", $registrationNo, "dateUnregistered", "");
$ro->editNow("registrationDetails", "registrationNo", $registrationNo, "timeUnregistered", "");
}
echo "\n<script type='text/javascript'>\nalert('Void Payment Success');\nwindow.location = 'http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientProfile_handler.php?registrationNo={$registrationNo}&username={$user}';\n</script>\n\n";
示例2: count
<?php
include "../../../myDatabase1.php";
$itemNo = $_GET['itemNo'];
$count = count($itemNo);
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$type = $_GET['type'];
$ro = new database1();
for ($x = 0; $x < $count; $x++) {
//echo "<br>".$itemNo[$x];
if ($type == "PhilHealth") {
$ro->getPatientChargesToEdit($itemNo[$x]);
if ($ro->selectNow("patientCharges", "title", "itemNo", $itemNo[$x]) == "MEDICINE" || $ro->selectNow("patientCharges", "title", "itemNo", $itemNo[$x]) == "SUPPLIES") {
$newPrice = $ro->getInventoryPrice($ro->patientCharges_chargesCode()) + $ro->getInventoryPrice($ro->patientCharges_chargesCode()) * 0.25;
} else {
$newPrice = $ro->selectNow("availableCharges", "OPD", "chargesCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo[$x])) + $ro->selectNow("availableCharges", "OPD", "chargesCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo[$x])) * 0.25;
}
//phic Price
//$newTotal = ($newPrice * $ro->patientCharges_quantity());
} else {
if ($type == "CASH") {
$ro->getPatientChargesToEdit($itemNo[$x]);
if ($ro->selectNow("patientCharges", "title", "itemNo", $itemNo[$x]) == "MEDICINE" || $ro->selectNow("patientCharges", "title", "itemNo", $itemNo[$x]) == "SUPPLIES") {
$newPrice = $ro->getInventoryPrice($ro->patientCharges_chargesCode());
//phic Price
} else {
$newPrice = $ro->selectNow("availableCharges", "OPD", "chargesCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo[$x]));
}
///$newTotal = ($newPrice * $ro->patientCharges_quantity());
} else {