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


PHP database1::editNow方法代码示例

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


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

示例1: date

     $services = "Examination";
     $chargesPrice = $ro->selectNow("availableCharges", "PRIVATE", "chargesCode", $packageIncluded[1]);
     $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $chargesPrice, "0.00", $chargesPrice, $chargesPrice, "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), $ro->selectNow("inventory", "inventoryLocation", "inventoryCode", $packageIncluded[1]), $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room());
 } else {
     if ($packageIncluded[2] == "MEDICINE") {
         $services = "Medication";
         $medPrice = preg_split("/\\_/", $ro->selectNow("hospitalPackage", "Added", "packageNo", $packageNo[$x]));
         //original
         //$ro->addCharges_cash("UNPAID",$registrationNo,$packageIncluded[1],$packageIncluded[0],$medPrice[1],"0.00",$medPrice[1],$medPrice[1],"0.00","0.00",$ro->getSynapseTime(),date("Y-m-d"),$username,$services,$packageIncluded[2],"Cash","0.00",$batchNo,$ro->selectNow("hospitalPackage","packageIncluded_qty","packageNo",$packageNo[$x]),"PHARMACY",$ro->getRegistrationDetails_branch(),$ro->getRegistrationDetails_room());
         if ($ro->selectNow("inventory", "autoDispense", "inventoryCode", $packageIncluded[1]) == "yes") {
             //check autoDispense
             $currentQTY = $ro->selectNow("inventory", "quantity", "inventoryCode", $packageIncluded[1]);
             // current qty ng meds sa inventory
             $newQTY = $currentQTY - $itemQTY;
             // less sa inventory as in qty after ibawas ung desired qty
             $ro->editNow("inventory", "inventoryCode", $packageIncluded[1], "quantity", $newQTY);
             // update qty sa database
             $ro->addCharges_cash_autoDispense("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $medPrice[1], "0.00", "0.00", "0.00", "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $itemQTY, $ro->selectNow("inventory", "inventoryLocation", "inventoryCode", $packageIncluded[1]), $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room(), "dispensedBy_" . $username, $ro->getSynapseTime());
         } else {
             $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $medPrice[1], "0.00", "0.00", "0.00", "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $itemQTY, $ro->selectNow("inventory", "inventoryLocation", "inventoryCode", $packageIncluded[1]), $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room());
         }
     } else {
         if ($packageIncluded[2] == "SUPPLIES") {
             $services = "Others";
             $supPrice = $ro->selectNow("hospitalPackage", "unitcost", "packageNo", $packageNo[$x]);
             //original
             //$ro->addCharges_cash("UNPAID",$registrationNo,$packageIncluded[1],$packageIncluded[0],$supPrice,"0.00",$supPrice,$supPrice,"0.00","0.00",$ro->getSynapseTime(),date("Y-m-d"),$username,$services,$packageIncluded[2],"Cash","0.00",$batchNo,$ro->selectNow("hospitalPackage","packageIncluded_qty","packageNo",$packageNo[$x]),"PHARMACY",$ro->getRegistrationDetails_branch(),$ro->getRegistrationDetails_room());
             if ($ro->selectNow("inventory", "autoDispense", "inventoryCode", $packageIncluded[1]) == "yes") {
                 $currentQTY = $ro->selectNow("inventory", "quantity", "inventoryCode", $packageIncluded[1]);
                 // current qty ng meds sa inventory
                 $newQTY = $currentQTY - $itemQTY;
开发者ID:rickyx12,项目名称:mendero,代码行数:31,代码来源:applyPackage.php

示例2:

<?php

include "../../../myDatabase1.php";
$packageName = $_GET['packageName'];
$packagePrice = $_GET['packagePrice'];
$ro = new database1();
$ro->editNow("hospitalPackage", "packageName", $packageName, "packagePrice", $packagePrice);
开发者ID:rickyx12,项目名称:protacio,代码行数:7,代码来源:editPackage1.php

示例3:

<?php

include "../../../myDatabase1.php";
$username = $_GET['username'];
$hospital = $_GET['hospital'];
$address = $_GET['address'];
$headingNo = $_GET['headingNo'];
$ro = new database1();
$ro->editNow("radioHeading", "headingNo", $headingNo, "hospital", $hospital);
$ro->editNow("radioHeading", "headingNo", $headingNo, "address", $address);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/Results/Radiology/radioHeadingMasterfile.php?username={$username}");
开发者ID:rickyx12,项目名称:protacio,代码行数:11,代码来源:editHospital1.php

示例4: date

} else {
    $remainingLimit = $ro->getPHIClimit_suppliesOnly() - $ro->getTotal("phic", "SUPPLIES", $registrationNo);
    if ($ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes" && $ro->getPatientRecord_phic() == "YES") {
        //cover at pasok pa sa phic limit ng meds
        //$totalPrice = (($sellingPrice * 0.15) + $sellingPrice) * $quantity; //phic price
        $totalPrice = $sellingPrice * $quantity;
        // cashPrice muna for temporary
        if ($remainingLimit >= $totalPrice) {
            //cover lahat
            //check autoDispense????
            if ($ro->selectNow("inventory", "autoDispense", "inventoryCode", $chargesCode) == "yes") {
                $currentQTY = $ro->selectNow("inventory", "quantity", "inventoryCode", $chargesCode);
                // current qty ng meds/sup sa inventory
                $newQTY = $currentQTY - $quantity;
                // less sa inventory as in qty after ibawas ung desired qty ng user
                $ro->editNow("inventory", "inventoryCode", $chargesCode, "quantity", $newQTY);
                // update qty sa database
                $ro->addCharges_cash_autoDispense($status, $registrationNo, $chargesCode, $description, $sellingPrice * 0.15 + $sellingPrice, "0", $totalPrice, "0", $totalPrice, "0", $timeCharge, date("Y-m-d"), $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room, "dispensedBy_" . $username, $ro->getSynapseTime());
            } else {
                //nka cash price pa e2 instead n nka philhealth price
                $ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, "0", $totalPrice, "0", $totalPrice, "0", $timeCharge, date("Y-m-d"), $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room, $remarks, "");
            }
        } else {
            //hindi lahat cover so hahatiin ung total pra maging eksakto sa allowed phic supplies limit
            $excess = $totalPrice - $remainingLimit;
            //check autoDispense????
            if ($ro->selectNow("inventory", "autoDispense", "inventoryCode", $chargesCode) == "yes") {
                $currentQTY = $ro->selectNow("inventory", "quantity", "inventoryCode", $chargesCode);
                // current qty ng meds/sup sa inventory
                $newQTY = $currentQTY - $quantity;
                // less sa inventory as in qty after ibawas ung desired qty ng user
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:phicCovered.php

示例5: date

$ro->getPatientProfile($registrationNo);
for ($x = 0; $x < $countz; $x++) {
    $packageIncluded = preg_split("/\\_/", $ro->selectNow("hospitalPackage", "packageIncluded_description", "packageNo", $packageNo[$x]));
    //addCharges_cash($status,$registrationNo,$chargesCode,$description,$sellingPrice,$discount,$total,$cashUnpaid,$phic,$company,$timeCharge,$dateCharge,$chargeBy,$service,$title,$paidVia,$cashPaid,$batchNo,$quantity,$inventoryFrom,$branch,$room)
    $sellingPrice;
    if ($packageIncluded[2] == "LABORATORY" || $packageIncluded[2] == "RADIOLOGY" || $packageIncluded[2] == "ECG" || $packageIncluded[2] == "OR/DR/ER/ Fee" || $packageIncluded[2] == "REHAB") {
        $services = "Examination";
        $chargesPrice = $ro->selectNow("availableCharges", "PRIVATE", "chargesCode", $packageIncluded[1]);
        $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $chargesPrice, "0.00", $chargesPrice, $chargesPrice, "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), "PHARMACY", $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room());
    } else {
        if ($packageIncluded[2] == "MEDICINE") {
            $services = "Medication";
            $medPrice = preg_split("/\\_/", $ro->selectNow("hospitalPackage", "Added", "packageNo", $packageNo[$x]));
            $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $medPrice[1], "0.00", $medPrice[1], $medPrice[1], "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), "PHARMACY", $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room());
        } else {
            if ($packageIncluded[2] == "SUPPLIES") {
                $services = "Others";
                $supPrice = $ro->selectNow("hospitalPackage", "unitcost", "packageNo", $packageNo[$x]);
                $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $supPrice, "0.00", $supPrice, $supPrice, "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), "PHARMACY", $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room());
            } else {
                $services = "PROFESSIONAL FEE";
                $sellingPrice = 0;
            }
        }
    }
    /*
    $ro->addCharges_cash("UNPAID",$registrationNo,$packageIncluded[1],$packageIncluded[0],$sellingPrice,"0.00","0.00","0.00","0.00","0.00",$ro->getSynapseTime(),date("M_d_Y"),$username,$services,$packageIncluded[2],"Cash","0.00",$batchNo,$ro->selectNow("hospitalPackage","packageIncluded_qty","packageNo",$packageNo[$x]),"PHARMACY",$ro->getRegistrationDetails_branch(),$ro->getRegistrationDetails_room());
    */
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "package", $ro->selectNow("hospitalPackage", "packageNo", "packageNo", $packageNo[$x]) . "_" . $ro->selectNow("hospitalPackage", "packageName", "packageNo", $packageNo[$x]));
}
echo "\r\n<script type='text/javascript'>\r\nwindow.parent.location.reload();\r\n</script>\r\n\r\n";
开发者ID:rickyx12,项目名称:mendero,代码行数:31,代码来源:applyPackage.php

示例6: date

<?php

include "../../../myDatabase1.php";
$username = $_GET['username'];
$itemNo = $_GET['itemNo'];
$registrationNo = $_GET['registrationNo'];
$ro = new database1();
$ro->doubleEditNow("patientCharges", "itemNo", $itemNo, "registrationNo", $registrationNo, "cashPaid", $ro->doubleSelectNow("patientCharges", "cashUnpaid", "itemNo", $itemNo, "registrationNo", $registrationNo));
// kuhain ang total price at ilagay sa cashPaid cols
$ro->doubleEditNow("patientCharges", "itemNo", $itemNo, "registrationNo", $registrationNo, "cashUnpaid", "0");
// gwen 0 ang cashUnpaid cols
$ro->doubleEditNow("patientCharges", "itemNo", $itemNo, "registrationNo", $registrationNo, "status", "PAID");
// tagged as PAID
$ro->doubleEditNow("patientCharges", "itemNo", $itemNo, "registrationNo", $registrationNo, "datePaid", date("M_d_Y"));
$ro->doubleEditNow("patientCharges", "itemNo", $itemNo, "registrationNo", $registrationNo, "timePaid", $ro->getSynapseTime());
$ro->doubleEditNow("patientCharges", "itemNo", $itemNo, "registrationNo", $registrationNo, "paidBy", $username);
// gwen 0 ang cashUnpaid cols
$newQty = $ro->selectNow("inventory", "quantity", "inventoryCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo)) - $ro->selectNow("patientCharges", "quantity", "itemNo", $itemNo);
$ro->editNow("inventory", "inventoryCode", $ro->doubleSelectNow("patientCharges", "chargesCode", "itemNo", $itemNo, "registrationNo", $registrationNo), "quantity", $newQty);
$ro->doubleEditNow("patientCharges", "itemNo", $itemNo, "registrationNo", $registrationNo, "departmentStatus", "dispensedBy_" . $username);
$ro->doubleEditNow("patientCharges", "itemNo", $itemNo, "registrationNo", $registrationNo, "departmentTime", $ro->getSynapseTime());
开发者ID:rickyx12,项目名称:protacio,代码行数:21,代码来源:paidNow.php

示例7: date

<?php

include "../../../myDatabase1.php";
$registrationNo = $_GET['registrationNo'];
$ro = new database1();
$ro->editNow("registrationDetails", "registrationNo", $registrationNo, "dateUnregistered", date("M_d_Y"));
$ro->editNow("registrationDetails", "registrationNo", $registrationNo, "timeUnregistered", $ro->getSynapseTime());
echo "\n<script type='text/javascript'>\nalert('Patient is now Discharged');\n</script>\n\n\n";
开发者ID:rickyx12,项目名称:protacio,代码行数:8,代码来源:dischargedPatient.php

示例8:

<?php

include "../../../myDatabase1.php";
$username = $_GET['username'];
$title = $_GET['title'];
$report = $_GET['report'];
$reportNo = $_GET['reportNo'];
$ro = new database1();
$ro->editNow("radioReportList", "reportNo", $reportNo, "title", $title);
$ro->editNow("radioReportList", "reportNo", $reportNo, "report", $report);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/Results/Radiology/radioReportTemplateMasterfile.php?username={$username}");
开发者ID:rickyx12,项目名称:protacio,代码行数:11,代码来源:editRadioTemplate1.php

示例9: date

    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "cashPaid", $ro->doubleSelectNow("patientCharges", "cashUnpaid", "itemNo", $itemNo[$x], "registrationNo", $registrationNo));
    // kuhain ang total price at ilagay sa cashPaid cols
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "cashUnpaid", "0");
    // gwen 0 ang cashUnpaid cols
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "status", "PAID");
    // tagged as PAID
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "datePaid", $datePaid);
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "control_datePaid", $year . "-" . $m . "-" . $day);
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "timePaid", $ro->getSynapseTime());
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "paidBy", $username);
    // gwen 0 ang cashUnpaid cols
    /*
    $newQty = ( $ro->selectNow("inventory","quantity","inventoryCode", $ro->selectNow("patientCharges","chargesCode","itemNo",$itemNo[$x])) - $ro->selectNow("patientCharges","quantity","itemNo",$itemNo[$x]) ); 
    
    $ro->editNow("inventory","inventoryCode",$ro->doubleSelectNow("patientCharges","chargesCode","itemNo",$itemNo[$x],"registrationNo",$registrationNo),"quantity",$newQty);
    */
    //$ro->doubleEditNow("patientCharges","itemNo",$itemNo[$x],"registrationNo",$registrationNo,"departmentStatus","dispensedBy_".$username);
    //$ro->doubleEditNow("patientCharges","itemNo",$itemNo[$x],"registrationNo",$registrationNo,"departmentTime",$ro->getSynapseTime());
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "orNO", $orNO);
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "receiptType", $receiptType);
}
$ro->getPatientProfile($registrationNo);
if ($ro->getPatientRecord_firstName() == "N/A" && $ro->getPatientRecord_middleName() == "N/A") {
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "dateUnregistered", date("Y-m-d"));
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "timeUnregistered", $ro->getSynapseTime());
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "mgh", "Synapse System");
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "mgh_date", date("Y-m-d"));
    $ro->gotoPage("/COCONUT/patientProfile/individualPayment/checkBalance.php?registrationNo={$registrationNo}&username={$username}");
} else {
    $ro->gotoPage("/COCONUT/patientProfile/individualPayment/checkBalance.php?registrationNo={$registrationNo}&username={$username}");
}
开发者ID:rickyx12,项目名称:mendero,代码行数:31,代码来源:paidItems.php

示例10:

<?php

include "../../myDatabase1.php";
$registrationNo = $_GET['registrationNo'];
$package = $_GET['package'];
$ro = new database1();
$ro->editNow("phicTransmit", "registrationNo", $registrationNo, "package", $package);
echo "\n\n<script type='text/javascript'>\nalert('Package Amount Activated');\n</script>\n\n";
开发者ID:rickyx12,项目名称:protacio,代码行数:8,代码来源:editTransmitter1.php

示例11: 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";
开发者ID:rickyx12,项目名称:mendero,代码行数:25,代码来源:voidNow.php

示例12: date

     $services = "Examination";
     $chargesPrice = $ro->selectNow("hospitalPackage", "Added", "packageNo", $packageNo[$x]);
     $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $chargesPrice, "0.00", $chargesPrice, $chargesPrice, "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), $ro->selectNow("inventory", "inventoryLocation", "inventoryCode", $packageIncluded[1]), $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room(), "", "", "", "", "", "");
 } else {
     if ($packageIncluded[2] == "MEDICINE") {
         $services = "Medication";
         $medPrice = $ro->selectNow("hospitalPackage", "Added", "packageNo", $packageNo[$x]);
         //original
         //$ro->addCharges_cash("UNPAID",$registrationNo,$packageIncluded[1],$packageIncluded[0],$medPrice[1],"0.00",$medPrice[1],$medPrice[1],"0.00","0.00",$ro->getSynapseTime(),date("Y-m-d"),$username,$services,$packageIncluded[2],"Cash","0.00",$batchNo,$ro->selectNow("hospitalPackage","packageIncluded_qty","packageNo",$packageNo[$x]),"PHARMACY",$ro->getRegistrationDetails_branch(),$ro->getRegistrationDetails_room());
         if ($ro->selectNow("inventory", "autoDispense", "inventoryCode", $packageIncluded[1]) == "yes") {
             //check autoDispense
             $currentQTY = $ro->selectNow("inventory", "quantity", "inventoryCode", $packageIncluded[1]);
             // current qty ng meds sa inventory
             $newQTY = $currentQTY - $itemQTY;
             // less sa inventory as in qty after ibawas ung desired qty
             $ro->editNow("inventory", "inventoryCode", $packageIncluded[1], "quantity", $newQTY);
             // update qty sa database
             $ro->addCharges_cash_autoDispense("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $medPrice[1], "0.00", "0.00", "0.00", "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $itemQTY, $ro->selectNow("inventory", "inventoryLocation", "inventoryCode", $packageIncluded[1]), $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room(), "dispensedBy_" . $username, $ro->getSynapseTime());
         } else {
             $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $medPrice, "0.00", $medPrice, $medPrice, "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $itemQTY, $ro->selectNow("inventory", "inventoryLocation", "inventoryCode", $packageIncluded[1]), $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room(), "", "", "", "", "", "");
         }
     } else {
         if ($packageIncluded[2] == "SUPPLIES") {
             $services = "Others";
             $supPrice = $ro->selectNow("hospitalPackage", "Added", "packageNo", $packageNo[$x]);
             //original
             $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $supPrice, "0.00", $supPrice, $supPrice, "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), "PHARMACY", $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room(), "", "", "", "", "", "");
             //$ro->addCharges_cash("UNPAID",$registrationNo,$packageIncluded[1],$packageIncluded[0],$supPrice,"0.00","0.00","0.00","0.00","0.00",$ro->getSynapseTime(),date("Y-m-d"),$username,$services,$packageIncluded[2],"Cash","0.00",$batchNo,$ro->selectNow("hospitalPackage","packageIncluded_qty","packageNo",$packageNo[$x]),$ro->selectNow("inventory","inventoryLocation","inventoryCode",$packageIncluded[1]),$ro->getRegistrationDetails_branch(),$ro->getRegistrationDetails_room());
         } else {
             $services = "PROFESSIONAL FEE";
             $sellingPrice = 0;
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:applyPackage.php

示例13:

<?php

include "../../../myDatabase1.php";
$registrationNo = $_POST['registrationNo'];
$username = $_POST['username'];
$month = $_POST['month'];
$day = $_POST['day'];
$year = $_POST['year'];
$month_due = $_POST['month_due'];
$day_due = $_POST['day_due'];
$year_due = $_POST['year_due'];
$promisorryNote = $_POST['promisorryNote'];
$balance = $_POST['balance'];
$ro = new database1();
$startDate = $month . "_" . $day . "_" . $year;
$dueDate = $month_due . "_" . $day_due . "_" . $year_due;
$ro->editNow("promisorryNote", "registrationNo", $registrationNo, "startDate", $startDate);
$ro->editNow("promisorryNote", "registrationNo", $registrationNo, "dueDate", $dueDate);
$ro->editNow("promisorryNote", "registrationNo", $registrationNo, "amount", $balance);
$ro->editNow("promisorryNote", "registrationNo", $registrationNo, "note", $promisorryNote);
$ro->editNow("promisorryNote", "registrationNo", $registrationNo, "postedBy", $username);
header("Location: /COCONUT/patientProfile/patientProfile_handler.php?registrationNo={$registrationNo}&username={$username}");
开发者ID:rickyx12,项目名称:protacio,代码行数:22,代码来源:editPromisorry1.php

示例14:

         }
         ///$newTotal = ($newPrice * $ro->patientCharges_quantity());
     } else {
         $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.35;
         } 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.35;
         }
         //company HMO Price
         //$newTotal = ($newPrice * $ro->patientCharges_quantity());
     }
 }
 $newTotal = $newPrice * $ro->patientCharges_quantity();
 if ($type == "CASH") {
     $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "sellingPrice", $newPrice);
     $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "total", $newTotal);
     $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "cashUnpaid", $newTotal);
     $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "phic", "0");
     $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "company", "0");
 } else {
     if ($type == "PhilHealth") {
         $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "sellingPrice", $newPrice);
         $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "total", $newTotal);
         $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "cashUnpaid", "0");
         $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "phic", $newTotal);
         $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "company", "0");
     } else {
         $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "sellingPrice", $newPrice);
         $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "total", $newTotal);
         $ro->editNow("patientCharges", "itemNo", $itemNo[$x], "cashUnpaid", "0");
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:updatePriceNow.php

示例15:

<?php

include "../../myDatabase1.php";
$itemNo = $_GET['itemNo'];
$username = $_GET['username'];
$ro = new database1();
$ro->editNow("patientCharges", "itemNo", $itemNo, "departmentStatus", "");
echo "Pls Click the Patient's Name to view his/her Laboratories..";
开发者ID:rickyx12,项目名称:protacio,代码行数:8,代码来源:unremit.php


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