本文整理汇总了PHP中database::getPHIClimit_medicine方法的典型用法代码示例。如果您正苦于以下问题:PHP database::getPHIClimit_medicine方法的具体用法?PHP database::getPHIClimit_medicine怎么用?PHP database::getPHIClimit_medicine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database
的用法示例。
在下文中一共展示了database::getPHIClimit_medicine方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo "<center><br><br>";
//$ro->getPHIClimit($casetype);
$ro->getPHIClimit_setter($casetype);
$ro->getPatientProfile($registrationNo);
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("PHIC Medicine");
//$ro->coconutTableHeader("PHIC Supplies Only");
$ro->coconutTableHeader("PHIC Supplies");
//$ro->coconutTableHeader("PHIC Room");
$ro->coconutTableHeader("PHIC PF");
$ro->coconutTableHeader("HMO");
$ro->coconutTableHeader("Cash");
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$ro->coconutTableData(" " . number_format($ro->getPHIClimit_medicine(), 2));
//$ro->coconutTableData(" ".$ro->getPHIClimit_suppliesOnly());
$ro->coconutTableData(" " . $ro->getPHIClimit_supplies());
//$ro->coconutTableData(" ".$ro->getPHIClimit_room());
$ro->coconutTableData(" " . $ro->getPHIClimit_pf());
$ro->coconutTableData(" " . $ro->getRegistrationDetails_limitHMO());
$ro->coconutTableData(" " . $ro->getRegistrationDetails_limitCASH());
$ro->coconutTableRowStop();
$ro->coconutTableStop();
echo "<hr>";
echo "<font size=3 color=red>Your Current Total</font>";
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("PHIC Medicine");
//$ro->coconutTableHeader("PHIC Supplies Only");
//$ro->coconutTableHeader("PHIC Room");
示例2: database
<?php
include "../../../myDatabase.php";
$registrationNo = $_GET['registrationNo'];
$casetype = $_GET['casetype'];
$ro = new database();
$ro->getPatientProfile($registrationNo);
$ro->getPHIClimit_setter($casetype);
if ($ro->getPatientRecord_phic() == "yes" || $ro->getPatientRecord_phic() == "YES") {
//check kung phic
$phicMed = $ro->getTotal("cashUnpaid", "", $registrationNo) - $ro->getPHIClimit_medicine();
echo $phicMed;
$ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "cashUnpaid", $registrationNo), "phic", $ro->getPHIClimit_medicine());
// magLLgay ng amount based on PHIC-med limit
$ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "cashUnpaid", $registrationNo), "cashUnpaid", $ro->getTotal("cashUnpaid", "", $registrationNo) - $ro->getPHIClimit_medicine());
// magLLgay ng amount based on PHIC-med limit
} else {
echo "hello";
}
示例3: date
if ($title == "NURSING-CHARGES") {
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/availableCharges/quantityMisc.php?status={$status}®istrationNo={$registrationNo}&chargesCode={$chargesCode}&description={$description}&sellingPrice={$sellingPrice}&discount={$discount}&timeCharge={$timeCharge}&room={$room}&chargeBy={$chargeBy}&service={$service}&title={$title}&paidVia={$paidVia}&cashPaid={$cashPaid}&batchNo={$batchNo}&username={$username}&inventoryFrom={$inventoryFrom}");
} else {
$dateCharge = date("M_d_Y");
if ($title == "PROFESSIONAL FEE") {
$price = preg_split("/\\//", $sellingPrice);
$currentTotal = $quantity * $price[0];
} else {
$currentTotal = $quantity * $sellingPrice;
}
$totalDiscount = $quantity * $discount;
$grandTotal = $currentTotal - $totalDiscount;
$ro->getPatientProfile($registrationNo);
$ro->getPHIClimit_setter($ro->getRegistrationDetails_caseType());
$currentSupplies = $ro->getCurrentPHIC_check($registrationNo, "SUPPLIES") - $ro->getPHIClimit_supplies();
$currentMedicine = $ro->getCurrentPHIC_check($registrationNo, "MEDICINE") - $ro->getPHIClimit_medicine();
if ($ro->getPatientRecord_phic() == "YES" && $ro->getRegistrationDetails_company() == "" && $ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes") {
//for phic
if ($title != "MEDICINE" && $currentSupplies < 0) {
$ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, 0, $grandTotal, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room);
} else {
if ($title != "MEDICINE" && $currentSupplies >= 0) {
$ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, $grandTotal, 0, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room);
} else {
if ($title == "MEDICINE" && $currentMedicine < 1 && $ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes") {
$ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, 0, $grandTotal, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room);
} else {
if ($title == "MEDICINE" && $currentMedicine > 0 && $ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes") {
$ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, $grandTotal, 0, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room);
} else {
echo "";
示例4: database
<?php
include "../../../myDatabase.php";
$registrationNo = $_GET['registrationNo'];
$casetype = $_GET['casetype'];
$ro = new database();
$ro->getPHIClimit_setter($casetype);
$ro->getPatientProfile($registrationNo);
echo "PHIC Consumed " . number_format($ro->getTotal("phic", "MEDICINE", $registrationNo), 2);
// kunin ang phic n meds
echo "<Br>";
echo "PHIC Limit " . $ro->getPHIClimit_medicine();
//allowed Limit ng PHIC pra sa meds
echo "<Br>";
$kunin_ang_sobra = $ro->getTotal("phic", "MEDICINE", $registrationNo) - $ro->getPHIClimit_medicine();
$binawas_ang_sobra = $ro->getHighestCharges("MEDICINE", "phic", $registrationNo) - $kunin_ang_sobra;
if ($ro->getTotal("phic", "MEDICINE", $registrationNo) > $ro->getPHIClimit_medicine() && ($ro->getPatientRecord_phic() == "YES" || $ro->getPatientRecord_phic() == "yes")) {
//ckech kung mas mataas ang credit kaysa sa allowed limit
echo "<br>Sobra " . number_format($kunin_ang_sobra, 2);
echo "<br>Total: " . ($ro->getTotal("phic", "MEDICINE", $registrationNo) - $kunin_ang_sobra);
echo "<br>Total: " . $binawas_ang_sobra;
//bbwasan ang charges n may pnka mataas na selling price.. ang ibbwas ay ang sobra sa allowed limit ng PHIC meds
$ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "phic", $registrationNo), "phic", $binawas_ang_sobra);
if ($ro->getRegistrationDetails_company() != "") {
//ito ung LLipat ang bayad sa hmo
if ($ro->getRegistrationDetails_limitHMO() > $ro->getTotal("company", "", $registrationNo)) {
echo "hello";
} else {
$ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "phic", $registrationNo), "company", $kunin_ang_sobra);
}
} else {
示例5: database
<?php
include "../../../myDatabase.php";
$casetype = $_GET['casetype'];
$registrationNo = $_GET['registrationNo'];
$ro = new database();
echo "<center><br><br>";
//$ro->getPHIClimit($casetype);
$ro->getPHIClimit_setter($casetype);
$ro->getPatientProfile($registrationNo);
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("PHIC Medicine");
$ro->coconutTableHeader("PHIC Supplies");
$ro->coconutTableHeader("PHIC Room");
$ro->coconutTableHeader("PHIC PF");
$ro->coconutTableHeader("HMO");
$ro->coconutTableHeader("Cash");
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$ro->coconutTableData(" " . $ro->getPHIClimit_medicine());
$ro->coconutTableData(" " . $ro->getPHIClimit_supplies());
$ro->coconutTableData(" " . $ro->getPHIClimit_room());
$ro->coconutTableData(" " . $ro->getPHIClimit_pf());
$ro->coconutTableData(" " . $ro->getRegistrationDetails_limitHMO());
$ro->coconutTableData(" " . $ro->getRegistrationDetails_limitCASH());
$ro->coconutTableRowStop();
$ro->coconutTableStop();
echo "<hr>";
$ro->creditCharges($registrationNo, $casetype);
示例6: database
<?php
include "../../../myDatabase.php";
$registrationNo = $_GET['registrationNo'];
$casetype = $_GET['casetype'];
$ro = new database();
$ro->getPatientProfile($registrationNo);
$ro->getPHIClimit_setter($casetype);
if ($ro->getPatientRecord_phic() == "yes" || $ro->getPatientRecord_phic() == "YES") {
//check kung phic
$phicSup = $ro->getTotal("cashUnpaid", "", $registrationNo) - $ro->getPHIClimit_supplies();
echo $phicSup;
$ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("SUPPLIES", "cashUnpaid", $registrationNo), "phic", $ro->getPHIClimit_supplies());
// magLLgay ng amount based on PHIC-med limit
$ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("SUPPLIES", "cashUnpaid", $registrationNo), "cashUnpaid", $ro->getTotal("cashUnpaid", "", $registrationNo) - $ro->getPHIClimit_supplies());
// magLLgay ng amount based on PHIC-med limit
} else {
if ($ro->getRegistrationDetails_company() != "") {
$ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("", "cashUnpaid", $registrationNo), "company", $ro->getPHIClimit_medicine());
// magLLgay ng amount based on PHIC-med limit
} else {
echo "hello";
}
}
示例7: database
<?php
include "../../../myDatabase.php";
$casetype = $_GET['casetype'];
$registrationNo = $_GET['registrationNo'];
$ro = new database();
$ro->getPatientProfile($registrationNo);
$ro->getPHIClimit_setter($casetype);
$currentCash = $ro->getTotal("cashUnpaid", "", $registrationNo);
$kulang = $ro->getPHIClimit_medicine() - $ro->getCurrentPHIC_check($registrationNo, "MEDICINE");
$ro->getHighestCharges_itemNo_reverse("MEDICINE", $registrationNo, $kulang);
$pandagdag = $ro->highestCharges_getCashUnpaid_reverse() - $kulang;
$ro->editNow("patientCharges", "itemNo", $ro->highestCharges_getItemNo_reverse(), "phic", $kulang);
//bbwsan ung cashUnpa
$ro->editNow("patientCharges", "itemNo", $ro->highestCharges_getItemNo_reverse(), "cashUnpaid", $pandagdag);
echo $ro->highestCharges_getItemNo_reverse();
示例8: database
<?php
include "../../../myDatabase.php";
$registrationNo = $_GET['registrationNo'];
$casetype = $_GET['casetype'];
$cash = $_GET['cash'];
$case = $_GET['case'];
$ro = new database();
$ro->getPHIClimit_setter($casetype);
echo $cash - $ro->getPHIClimit_medicine();
echo "<br><br>";
$itemz = preg_split("/\\_/", $ro->getMaximumTotal($registrationNo, $case));
echo "Price:" . $itemz[0];
echo "<br><br>item no." . $itemz[1];
$ro->getPatientChargesToEdit($itemz[1]);
$excessPHIC = $ro->getCurrentPHIC_check($registrationNo, "MEDICINE") - $ro->getPHIClimit_medicine();
//$ro->getCurrentPHIC_check($registrationNo,"MEDICINE")
//$ro->getPHIClimit_medicine()
if ($itemz[0] >= $excessPHIC) {
$newCash = $ro->patientCharges_cashUnpaid() - ($ro->getPHIClimit_medicine() - $ro->getTotal("phic", "MEDICINE", $registrationNo));
if ($newCash > 1) {
$ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", $newCash);
$ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $ro->getPHIClimit_medicine() - $ro->getTotal("phic", "MEDICINE", $registrationNo));
} else {
$ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", "0");
$ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $ro->patientCharges_cashUnpaid());
}
} else {
$ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", "0");
$ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $ro->patientCharges_cashUnpaid());
}
示例9: database
<?php
include "../../../myDatabase.php";
$registrationNo = $_GET['registrationNo'];
$casetype = $_GET['casetype'];
$cashUnpaid = $_GET['cashUnpaid'];
$ro = new database();
$ro->getPHIClimit_setter($casetype);
echo $cashUnpaid . "<br>";
echo $ro->totalItems($registrationNo, "MEDICINE");
$shouldBeCovered = $cashUnpaid - $ro->getPHIClimit_medicine();
echo "<Br><br>Total: " . $shouldBeCovered;
echo "<Br>No. of Items: " . $ro->totalItems($registrationNo, "MEDICINE");
$shouldBeLessInCash = $ro->getPHIClimit_medicine() % $ro->totalItems($registrationNo, "MEDICINE");
echo "<br><br>Should Be Less in every items: " . $shouldBeLessInCash;
//$ro->phicFuller("patientCharges","registrationNo",$registrationNo,"title","MEDICINE","cashUnpaid",$shouldBeLessInCash);
//$ro->phicFuller("patientCharges","registrationNo",$registrationNo,"title","MEDICINE","phic",$shouldBeLessInCash);