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


PHP database::getPHIClimit_medicine方法代码示例

本文整理汇总了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("&nbsp;" . number_format($ro->getPHIClimit_medicine(), 2));
//$ro->coconutTableData("&nbsp;".$ro->getPHIClimit_suppliesOnly());
$ro->coconutTableData("&nbsp;" . $ro->getPHIClimit_supplies());
//$ro->coconutTableData("&nbsp;".$ro->getPHIClimit_room());
$ro->coconutTableData("&nbsp;" . $ro->getPHIClimit_pf());
$ro->coconutTableData("&nbsp;" . $ro->getRegistrationDetails_limitHMO());
$ro->coconutTableData("&nbsp;" . $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");
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:show_phicLimit.php

示例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";
}
开发者ID:rickyx12,项目名称:protacio,代码行数:19,代码来源:applyCase.php

示例3: date

 if ($title == "NURSING-CHARGES") {
     $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/availableCharges/quantityMisc.php?status={$status}&registrationNo={$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 "";
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:addCharges_jan26.php

示例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&nbsp;" . number_format($ro->getTotal("phic", "MEDICINE", $registrationNo), 2);
// kunin ang phic n meds
echo "<Br>";
echo "PHIC Limit&nbsp;" . $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&nbsp;" . number_format($kunin_ang_sobra, 2);
    echo "<br>Total:&nbsp;" . ($ro->getTotal("phic", "MEDICINE", $registrationNo) - $kunin_ang_sobra);
    echo "<br>Total:&nbsp;" . $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 {
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:activateCasetype.php

示例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("&nbsp;" . $ro->getPHIClimit_medicine());
$ro->coconutTableData("&nbsp;" . $ro->getPHIClimit_supplies());
$ro->coconutTableData("&nbsp;" . $ro->getPHIClimit_room());
$ro->coconutTableData("&nbsp;" . $ro->getPHIClimit_pf());
$ro->coconutTableData("&nbsp;" . $ro->getRegistrationDetails_limitHMO());
$ro->coconutTableData("&nbsp;" . $ro->getRegistrationDetails_limitCASH());
$ro->coconutTableRowStop();
$ro->coconutTableStop();
echo "<hr>";
$ro->creditCharges($registrationNo, $casetype);
开发者ID:rickyx12,项目名称:protacio,代码行数:30,代码来源:show_phicLimit1.php

示例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";
    }
}
开发者ID:rickyx12,项目名称:protacio,代码行数:24,代码来源:applyCaseSup.php

示例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();
开发者ID:rickyx12,项目名称:protacio,代码行数:16,代码来源:limitMagic_reverse.php

示例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());
}
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:phicFuller.php

示例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:&nbsp;" . $shouldBeCovered;
echo "<Br>No. of Items:&nbsp;" . $ro->totalItems($registrationNo, "MEDICINE");
$shouldBeLessInCash = $ro->getPHIClimit_medicine() % $ro->totalItems($registrationNo, "MEDICINE");
echo "<br><br>Should Be Less in every items:&nbsp;" . $shouldBeLessInCash;
//$ro->phicFuller("patientCharges","registrationNo",$registrationNo,"title","MEDICINE","cashUnpaid",$shouldBeLessInCash);
//$ro->phicFuller("patientCharges","registrationNo",$registrationNo,"title","MEDICINE","phic",$shouldBeLessInCash);
开发者ID:rickyx12,项目名称:protacio,代码行数:17,代码来源:forceFull.php


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