예제 #1
0
    $common->updateEcmonicsDetails($markDetailId, $ecnomicsId);
    //header("Location:".BASE_URL."indexThickBox.php?page=addfelling&markId=".$markDetailId);
}
$conversionDetail = $ecnomics['conversionDetail'];
$timberDO = new TimberDO();
$timberlist = $timberDO->getTimberList();
$timberCatDetail = $timberDO->getTimberCategoryDetail($forestID);
$ecmomicsMaster = $common->getEcnomicsMaster($markDetailId);
$ecnomicsId = $ecmomicsMaster['id'];
$timberRelationDetail = $timberDO->getTimberCategoryRelationDetail($markDetailId, $ecnomicsId, $i_tree_id);
if ($timberRelationDetail != '') {
    $timberCatDetail = $timberRelationDetail;
}
$unitPriceValue = $timberDO->getEcnomicsPriceRelation($markDetailId, $ecnomicsId);
if ($unitPriceValue == '') {
    $unitPriceValue = $timberDO->getTimberPriceDefault($forestID);
}
?>
<link
	rel="stylesheet" href="css/themes/base/jquery.ui.all.css">
<script src="js/jquery-1.6.2.js"></script>
<script src="js/ui/jquery.ui.core.js"></script>
<script src="js/ui/jquery.ui.widget.js"></script>
<script src="js/ui/jquery.ui.tabs.js"></script>
<link rel="stylesheet" href="css/demos.css">
<style>
.treetotal
{
	background-color:#999999;
	color:white;
}
예제 #2
0
파일: common.php 프로젝트: hpie/hpie
 function insertDefaultEcnomicsProduct($forestID, $markDetailId, $ecnomicsId)
 {
     return;
     global $db;
     $result = $this->getDetailInfo('ecnomics_category_timber', 'i_ecnomics_master_id', $ecnomicsId);
     if ($result != '' && !count($result) > 0) {
         $timberDO = new TimberDO();
         $unitPriceValue = $timberDO->getTimberPriceDefault($forestID);
         $timberCatDetail = $timberDO->getTimberCategoryDetail($forestID);
         $timberlist = $timberDO->getTimberList();
         $ctegoryDetail = $this->getDetailInfo('c_conversion_felling', 'i_forest_id', $forestID);
         foreach ($ctegoryDetail as $category) {
             $catid = $category['i_category_id'];
             foreach ($timberlist as $timberDetail) {
                 $ecnomics_category_timber['i_mark_id'] = $markDetailId;
                 $ecnomics_category_timber['i_forest_id'] = $forestID;
                 $ecnomics_category_timber['i_category_id'] = $catid;
                 $ecnomics_category_timber['i_timber_id'] = $timberDetail->id;
                 $ecnomics_category_timber['i_value'] = $timberCatDetail[$category['i_category_id']][$timberDetail->id]['i_value'];
                 $ecnomics_category_timber['i_status'] = 0;
                 $ecnomics_category_timber['i_ecnomics_master_id'] = $ecnomicsId;
                 $id = $db->insert('ecnomics_category_timber', $ecnomics_category_timber);
             }
         }
     }
 }