예제 #1
0
파일: editAdd.php 프로젝트: hpie/hpie
                $id = $db->insert('r_tree_category', $r_tree_category);
            }
        }
        $common->updateEcmonicsDetails($_POST['markid']);
    }
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=markCompleteDetail&markId=" . $_POST['markid']);
}
if (isset($_POST['cancel'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=markCompleteDetail&markId=" . $markDetailId);
}
$markList = $markDetail->getTreeMarkDetail($markDetailId, $treeId, $_SESSION['markingyearDetail']['from_vc_year']);
$voulmeDetail = $markDetail->getMarkIdVolume($markDetailId, $treeId, $_SESSION['markingyearDetail']['from_vc_year']);
$treeEntryDetail = $markList;
$treeEntryList = $markDetail->getTreeMarkedDetail($markDetailId, $_SESSION['markingyearDetail']['from_vc_year']);
$arrMarkDetail = $common->getInfo('c_mark_detail', $markDetailId);
$forestId = $arrMarkDetail[0]['i_forest_id'];
$arrCondition = array('i_forest_id' => $forestId);
$priceMasterNew = $common->selectCondition('m_price', $arrCondition);
foreach ($priceMasterNew as $priceMasterDetail) {
    $priceMaster[$priceMasterDetail['i_tree_id']] = $priceMasterDetail;
}
$arrCondition = array('i_mark_id' => $markDetailId, 'i_tree_id' => $treeId, 'vc_year' => $_SESSION['markingyearDetail']['from_vc_year']);
$currentPrice = $common->selectCondition('c_marked_price', $arrCondition);
$unitPriceValue = 0;
$defaultPrice = $priceMaster[$treeId]['price'];
if ($currentPrice != '' && $currentPrice[0]['i_value'] > 0) {
    $unitPriceValue = $currentPrice[0]['i_value'];
} else {
    $unitPriceValue = $priceMaster[0]['price'];