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


PHP database2::doubleEditNow方法代码示例

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


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

示例1: closeWindow

<?php

include "../../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$reconcileNo = $_GET['reconcileNo'];
$refno = $_GET['refno'];
$amount = $_GET['amount'];
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$remarks = $_GET['remarks'];
$ro = new database2();
$date = $month . "_" . $day . "_" . $year;
$ro->doubleEditNow("phicReconcile", "reconcileNo", $reconcileNo, "registrationNo", $registrationNo, "refno", $refno);
$ro->doubleEditNow("phicReconcile", "reconcileNo", $reconcileNo, "registrationNo", $registrationNo, "amount", $amount);
$ro->doubleEditNow("phicReconcile", "reconcileNo", $reconcileNo, "registrationNo", $registrationNo, "date", $date);
$ro->doubleEditNow("phicReconcile", "reconcileNo", $reconcileNo, "registrationNo", $registrationNo, "remarks", $remarks);
echo "\n<script language='javascript' type='text/javascript'>\nfunction closeWindow() {\nwindow.open('','_parent','');\nwindow.close();\n}\n</script> \n";
echo "<Br><Br><Br>";
echo "<a href='javascript:closeWindow();' style='text-decoration:none; color:red;'>CLOSE</a>";
开发者ID:rickyx12,项目名称:protacio,代码行数:20,代码来源:reconcileDetails_editNow.php

示例2: count

<?php

include "../../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$itemNo = $_GET['itemNo'];
$count = count($itemNo);
$ro = new database2();
for ($x = 0; $x < $count; $x++) {
    $sellingPrice = $ro->selectNow("patientCharges", "sellingPrice", "itemNo", $itemNo[$x]);
    $disc = $ro->selectNow("patientCharges", "total", "itemNo", $itemNo[$x]) * 0.2;
    //$ro->doubleEditNow("patientCharges","itemNo",$itemNo[$x],"registrationNo",$registrationNo,"sellingPrice",$sellingPrice);
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "total", $sellingPrice * $ro->selectNow("patientCharges", "quantity", "itemNo", $itemNo[$x]) - $disc);
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "discount", $disc);
    $ro->doubleEditNow("patientCharges", "itemNo", $itemNo[$x], "registrationNo", $registrationNo, "cashUnpaid", $sellingPrice * $ro->selectNow("patientCharges", "quantity", "itemNo", $itemNo[$x]) - $disc);
}
echo "<font color=red>Discount Applied.!</font>";
开发者ID:rickyx12,项目名称:mendero,代码行数:16,代码来源:discount1.php

示例3:

<?php

include "../../../myDatabase2.php";
$batchNo = $_GET['batchNo'];
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$itemNo = $_GET['itemNo'];
$subjective = $_GET['subjective'];
$objective = $_GET['objective'];
$assessment = $_GET['assessment'];
$ro = new database2();
if ($ro->selectNow("SOAP", "itemNo", "itemNo", $itemNo) != "") {
    $ro->doubleEditNow("SOAP", "itemNo", $itemNo, "registrationNo", $registrationNo, "subjective", $subjective);
    $ro->doubleEditNow("SOAP", "itemNo", $itemNo, "registrationNo", $registrationNo, "objective", $objective);
    $ro->doubleEditNow("SOAP", "itemNo", $itemNo, "registrationNo", $registrationNo, "assessment", $assessment);
} else {
    $ro->insert_soap($itemNo, $registrationNo, $subjective, $objective, $assessment, "");
}
echo "<div style='background:#47a3da; margin:10px; height:60px; width:350px; border-radius:15px;' >";
echo "<br><center>";
echo "<table border=0>";
echo "<tr>";
echo "<td>";
$ro->coconutFormStart("get", "http://" . $ro->getMyUrl() . "/COCONUT/android/doctor/mobileAddCharges_charges_handler.php");
echo "<input type='submit' style='background:#47a3da; border:0px; color:white; font-weight:bold; font-size:20px;' value='Charges'>";
$ro->coconutHidden("batchNo", $batchNo);
$ro->coconutHidden("registrationNo", $registrationNo);
$ro->coconutHidden("room", $ro->selectNow("registrationDetails", "room", "registrationNo", $registrationNo));
$ro->coconutHidden("username", $username);
$ro->coconutFormStop();
echo "</td>";
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:mobileAddCharges.php

示例4:

include "../../../myDatabase2.php";
$menu = $_GET['menu'];
$stockCardNo = $_GET['stockCardNo'];
$movementNo = $_GET['movementNo'];
$type = $_GET['type'];
$medType = $_GET['medType'];
$control = $_GET['control'];
$username = $_GET['username'];
$year = $_GET['year'];
$ro = new database2();
if ($menu == "firstThreePurchases") {
    $endingInventory1 = $_GET['endingInventory1'];
    if ($control == "encode") {
        $ro->inventoryMovement_insertEndingInventory($stockCardNo, "endingInventory", $endingInventory1);
    } else {
        $ro->doubleEditNow("inventoryMovement", "movementNo", $movementNo, "stockCardNo", $stockCardNo, "endingInventory", $endingInventory1);
    }
} else {
    if ($menu == "secondThreePurchases") {
        $endingInventory2 = $_GET['endingInventory2'];
        if ($control == "encode") {
            $ro->inventoryMovement_insertEndingInventory($stockCardNo, "endingInventory1", $endingInventory2);
        } else {
            $ro->doubleEditNow("inventoryMovement", "movementNo", $movementNo, "stockCardNo", $stockCardNo, "endingInventory1", $endingInventory2);
        }
    } else {
        if ($menu == "thirdThreePurchases") {
            $endingInventory3 = $_GET['endingInventory3'];
            if ($control == "encode") {
                $ro->inventoryMovement_insertEndingInventory($stockCardNo, "endingInventory2", $endingInventory3);
            } else {
开发者ID:rickyx12,项目名称:protacio,代码行数:31,代码来源:inventoryMovement_insert.php

示例5: count

<?php

include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$itemNo = $_GET['itemNo'];
$count = count($itemNo);
$ro = new database2();
for ($x = 0; $x < $count; $x++) {
    if ($ro->doubleSelectNow("patientCharges", "rBannyStatus", "registrationNo", $registrationNo, "itemNo", $itemNo[$x]) == "exclude") {
        $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo[$x], "rBannyStatus", "");
    } else {
        $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo[$x], "rBannyStatus", "exclude");
    }
}
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/rBanny/itemException.php?registrationNo={$registrationNo}");
开发者ID:rickyx12,项目名称:protacio,代码行数:15,代码来源:itemException1.php


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