Beispiel #1
0
                $r_tree_category['i_value'] = $value;
                $r_tree_category['i_volume'] = $value * $volumeTableDetail[$_POST['treetype_id']][$catList[$key]->id]['volume'];
                $r_tree_category['vc_year'] = $_SESSION['markingyearDetail']['from_vc_year'];
                $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) {
Beispiel #2
0
            $fellingChargesArray['i_felling_charges'] = $categoryValueArray;
            $chargesId = $db->insert('progress_felling_charges', $fellingChargesArray);
        }
        $arCondition = array('id' => $progressId);
        $arFieldValues['i_total_marked'] = $totalCount;
        $arFieldValues['i_total_Volume'] = $totalVolume;
        $id = $db->update('progress_felling_master', $arFieldValues, $arCondition);
    }
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=fellingHome&markId=" . $markDetailId);
}
if (isset($_POST['cancel'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=fellingHome&markId=" . $markDetailId);
}
$markList = $markDetail->getTreeMarkDetail($markDetailId, $treeId);
$treeEntryDetail = $markList;
if ($progressID != '') {
    $arFieldValues['id'] = $progressID;
    $progressMasterDetail = $common->selectCondition('progress_felling_master', $arFieldValues);
    $i_contractor_id = $progressMasterDetail[0]['i_contractor_id'];
    $i_month_id = $progressMasterDetail[0]['vc_month'];
    $i_year = $progressMasterDetail[0]['vc_year'];
    $voulmeDetail = $markDetail->getFellingConversionDetail($progressID);
    $tableP = 'progress_felling_charges';
    $fellingCharges = $common->getProgressChargesInfo($tableP, $progressID);
} else {
    $i_contractor_id = '';
    $i_month_id = '';
    $i_year = '';
}