Exemplo n.º 1
0
<?php

$markDetailId = $_GET['markId'];
$progressID = $_GET['progressId'];
$treeId = $_GET['treeid'];
$arrTreeTypes = array();
$arrTreeTypes = $common->getTreeType($markDetailId);
$arrMarkedVolume = array();
$i_tree_volume = '';
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getVolumeLevelDetail($markDetailId);
if (isset($_GET['treeid'])) {
    $i_tree_volume = $common->getMarkedVolume($markDetailId, $treeId);
}
if (isset($_POST['update'])) {
    extract($_POST);
    $count = 0;
    if ($updatePrevious > 0) {
        $existingDetail = 0;
    } else {
        $arFieldValues['i_mark_id'] = $markDetailId;
        $arFieldValues['i_contractor_id'] = $i_contractor_id;
        $arFieldValues['vc_month'] = $i_month_id;
        $arFieldValues['vc_year'] = $i_year;
        $list = $common->selectCondition('opening_progress_felling_master', $arFieldValues);
        echo count($list);
        echo '<br>' . $updatePrevious;
        $existingDetail = count($list);
    }
    echo $existingDetail;
    echo '<br>' . $updatePrevious;
Exemplo n.º 2
0
    <?php 
    echo $detail['dt_created'];
    ?>
  </td>
  <td>
  </td>
   <td class='completeLeft completeRight' colspan="3">
   <td class='completeLeft completeRight' colspan="4">
   <td class='completeLeft completeRight' colspan="3"></td>
 <td class='completeLeft completeRight' colspan="9">
 
 <td class='completeLeft completeRight' colspan="3"></td>
  <td class='completeLeft completeRight' colspan="3"></td>
  </tr>
	<?php 
    $markDetail = new MarkDetailDO();
    $markedTreeList = $markDetail->getMarkedTreesOnly($key);
    $allForestPoints = $common->getAllForestPoints($key);
    $allForestPoints = $common->getAllForestPointsonType($key, 1);
    $allForestPoints1 = array();
    $allForestPoints1[-1] = "Forest";
    foreach ($allForestPoints as $pointId => $name) {
        $allForestPoints1[$pointId] = $name;
    }
    $allForestPoints = $allForestPoints1;
    //Block For Fetching Progress Detail
    $conversionDetailCurrent = $markDetail->getProgressConversionTreeWiseYearBased($key, $year, '1');
    $conversionDetailPrevious = $markDetail->getProgressConversionTreeWiseYearBased($key, $year, '-1');
    $carriageDetail = $markDetail->getCarriageDetail($key, $year, '-1');
    foreach ($markedTreeList as $treeId => $TreeName) {
        $feelingTotalVolume = 0;
Exemplo n.º 3
0
        $c_tree_filling_detail['i_sm_value'] = $smValue[$timberTypeId];
        $c_tree_filling_detail['i_matecomission'] = $comission[$timberTypeId];
        $c_tree_filling_detail['i_comission_value'] = $comission_value[$timberTypeId];
        $c_tree_filling_detail['i_total_cost'] = $total[$timberTypeId];
        $c_tree_filling_detail['i_average'] = $average[$timberTypeId];
        $id = $db->insert('ecnomics_schedule_rates', $c_tree_filling_detail);
    }
    $common->insertDefaultEcnomicsConversion($forestID, $markDetailId, $ecnomicsId);
    $common->insertDefaultEcnomicsProduct($forestID, $markDetailId, $ecnomicsId);
    $common->insertDefaultEcnomicsOverHeadCharges($forestID, $markDetailId, $ecnomicsId);
    $common->insertDefaultEcnomicsCharges($forestID, $markDetailId, $ecnomicsId);
    $common->updateEcmonicsDetails($markDetailId, $ecnomicsId);
    ob_end_clean();
    header("location:indexThickBox.php?page=addEcnomicsOverHead&markId=" . $_REQUEST['markId']);
}
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getTimberVolummeDetail();
$markedTreeList = $markDetail->getMarkedTreesOnly($markDetailId);
$ecmomicsMaster = $common->getEcnomicsMaster($markDetailId);
$ecnomicsId = $ecmomicsMaster['id'];
$timberName = $markDetail->getEcnomicsConvertedTimberName($ecnomicsId);
$timberDetail = $markDetail->getTimberDetailVolumeTimberWise($ecnomicsId);
$timberDetail = $markDetail->getTimberDetailVolumeTimberWise($ecnomicsId);
$getRateDetail = $markDetail->getSaleRateDetail($ecnomicsId);
$salePrice = $markDetail->getSalePrice($ecnomicsId);
?>

<?php 
include 'header.php';
?>
<head>
Exemplo n.º 4
0
    <?php 
    echo $detail['dt_created'];
    ?>
  </td>
  <td>
  </td>
   <td class='completeLeft completeRight' colspan="3">
   <td class='completeLeft completeRight' colspan="4">
   <td class='completeLeft completeRight' colspan="3"></td>
 <td class='completeLeft completeRight' colspan="9">
 
 <td class='completeLeft completeRight' colspan="3"></td>
  <td class='completeLeft completeRight' colspan="3"></td>
  </tr>
	<?php 
    $markDetail = new MarkDetailDO();
    $markedTreeList = $markDetail->getMarkedTreesOnly($key);
    $allForestPoints = $common->getAllForestPoints($key);
    $allForestPoints = $common->getAllForestPointsonType($key, 2);
    //Block For Fetching Progress Detail
    $carriageDetail = $markDetail->getCarriageDetail($key, $year, '-1');
    $carriageOpening = $markDetail->getCarriageDetailOpening($key, $year, '-1');
    $totalTransfer = $markDetail->getTotalTransfer($key, $year, '-1');
    foreach ($markedTreeList as $treeId => $TreeName) {
        ?>
		<tr class='borderBottomLight'>
		<td colspan="4">
		 </td>
		 <td class='completeRight'>
		    <?php 
        echo $TreeName;
Exemplo n.º 5
0
$treetype_id = $_REQUEST['treeId'];
$progressId = $_REQUEST['progressId'];
$timberDO = new TimberDO();
$timberlist = $timberDO->getTimberList();
$arrAllcontractors = $common->getAllcontractors();
$allForestPoints = $common->getAllForestPointsonType($markDetailId, 2);
$treeId = $_GET['treeId'];
$timberPreviousValue = array();
$timberPreviousVolume = array();
$timberCurrentValue = array();
$timberCurrentVolume = array();
$markDetail = new MarkDetailDO();
$i_year = date('Y');
$i_month_id = date('m');
$i_contractor_id = $_GET['c_id'];
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getTimberVolummeDetail();
if (isset($_POST['cancel'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=conversionHome&markId=" . $markDetailId);
}
if (isset($_POST['update'])) {
    extract($_POST);
    $timberDetailArray = array();
    $count = 0;
    $existing = $common->checkExistingEcnomicsUpdate($markDetailId);
    if ($existing == '') {
        $economics_master['i_mark_id'] = $markDetailId;
        $ecnomicsId = $db->insert('economics_master', $economics_master);
    } else {
        $ecnomicsId = $existing['id'];
Exemplo n.º 6
0
<?php

$markDetailId = $_GET['markId'];
$markTressDetails = $common->getTreeMarked($_GET['markId']);
$markDetail = new MarkDetailDO();
$markList = $markDetail->getProgressTransPortationDetailOpening($markDetailId);
$markIdDetail = $common->getInfo('c_mark_detail', $markDetailId);
$markIdDetail['0']['id'];
$forestDetail = $common->getInfo('m_forest', $markIdDetail['0']['i_forest_id']);
$forestName = $forestDetail['0']['vc_name'];
$forestDFO = $dfoList[$forestDetail['0']['i_department_id']];
$markIdDetailHTML = $markDetail->getMarkIdDetailHTML($markDetailId, $forestDFO . '/' . $forestName);
if (isset($_POST['add_over_head'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=addOverhead&markId={$markDetailId}");
} else {
    if (isset($_POST['add_conversion'])) {
        ob_end_clean();
        header("Location:" . BASE_URL . "index.php?page=addConversion&markId={$markDetailId}");
    }
}
?>

<form id="form" action="" method="POST">
<table cellpadding="3px" cellspacing="3px" style='width:600px;' >
<?php 
include 'opening/transPortationHomeHTMLOpening.php';
?>


</table>
Exemplo n.º 7
0
<?php

$markDetailId = $_GET['markId'];
$markTressDetails = $common->getTreeMarked($_GET['markId']);
$markDetail = new MarkDetailDO();
$markList = $markDetail->getProgressOverHeadDetail($markDetailId);
$markIdDetail = $common->getInfo('c_mark_detail', $markDetailId);
$markIdDetail['0']['id'];
$forestDetail = $common->getInfo('m_forest', $markIdDetail['0']['i_forest_id']);
$forestName = $forestDetail['0']['vc_name'];
$forestDFO = $dfoList[$forestDetail['0']['i_department_id']];
$markIdDetailHTML = $markDetail->getMarkIdDetailHTML($markDetailId, $forestDFO . '/' . $forestName);
if (isset($_POST['add_over_head'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=addOverhead&markId={$markDetailId}");
} else {
    if (isset($_POST['add_conversion'])) {
        ob_end_clean();
        header("Location:" . BASE_URL . "index.php?page=addConversion&markId={$markDetailId}");
    }
}
?>

<form id="form" action="" method="POST">
<table cellpadding="3px" cellspacing="3px" style='width:600px;' >
<?php 
include 'progress/overHeadHomeHtml.php';
?>


</table>
Exemplo n.º 8
0
<br>
<div style=' padding-left:50px;'>
<?php 
$markDetailId = $_GET['markId'];
$markTressDetails = $common->getTreeMarked($_GET['markId']);
$markDetail = new MarkDetailDO();
$markList = $markDetail->getProgressFellingDetail($markDetailId);
$markIdDetail = $common->getInfo('c_mark_detail', $markDetailId);
$markIdDetail['0']['id'];
$forestDetail = $common->getInfo('m_forest', $markIdDetail['0']['i_forest_id']);
$forestName = $forestDetail['0']['vc_name'];
$forestDFO = $dfoList[$forestDetail['0']['i_department_id']];
$markIdDetailHTML = $markDetail->getMarkIdDetailHTML($markDetailId, $forestDFO . '/' . $forestName);
if (isset($_POST['add_over_head'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=addOverhead&markId={$markDetailId}");
} else {
    if (isset($_POST['add_conversion'])) {
        ob_end_clean();
        header("Location:" . BASE_URL . "index.php?page=addConversion&markId={$markDetailId}");
    }
}
$mtimberDetail = $markDetail->getConvertedTimberName($markDetailId);
$mconvertedTrees = $markDetail->getConvertedTreeName($markDetailId);
$fellingDetail = $markDetail->getProgressFellingCategoryWise($markDetailId);
$getConvertedTimberDetail = $markDetail->getConvertedTimberTreeWiseDetail($markDetailId);
printButton('800', 'javascript:window.print()', '3px');
?>
<br>
<table cellpadding="1px" cellspacing="1px" style='width:700px;text-align:center' >
<?php 
Exemplo n.º 9
0
<?php

$markDetailId = $_GET['markid'];
$treeId = $_GET['treeid'];
$arrTreeTypes = array();
$arrTreeTypes = $common->getTreeType($markDetailId);
$arrMarkedVolume = array();
$i_tree_volume = '';
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getVolumeLevelDetail($markDetailId);
if (isset($_GET['treeid'])) {
    $i_tree_volume = $common->getMarkedVolume($markDetailId, $treeId);
}
if (isset($_POST['update'])) {
    echo 'inside the Post';
    extract($_POST);
    if ($treetype_id != '') {
        $count = 0;
        $arFieldValues['i_mark_id'] = $markDetailId;
        $arFieldValues['i_tree_id'] = $_POST['treetype_id'];
        $arFieldValues['i_tree_volume'] = $_POST['i_tree_volume'];
        $arrCondition = array('i_mark_id' => $markDetailId, 'i_tree_id' => $treetype_id, 'vc_year' => $_SESSION['markingyearDetail']['from_vc_year']);
        $db->delete('c_marked_volume', $arrCondition);
        $arrCondition = array('i_mark_detail_id' => $markDetailId, 'i_tree_id' => $treetype_id, 'vc_year' => $_SESSION['markingyearDetail']['from_vc_year']);
        $db->delete('r_tree_category', $arrCondition);
        //die();
        $arrCondition = array('i_mark_id' => $markDetailId, 'i_tree_id' => $treetype_id, 'vc_year' => $_SESSION['markingyearDetail']['from_vc_year']);
        $db->delete('c_marked_price', $arrCondition);
        $arMarkedPrice['i_mark_id'] = $_POST['markid'];
        $arMarkedPrice['i_tree_id'] = $treetype_id;
        $arMarkedPrice['i_value'] = $unitPrice;
Exemplo n.º 10
0
<?php

$markDetailId = $_GET['markId'];
$markTressDetails = $common->getTreeMarked($_GET['markId']);
$markDetail = new MarkDetailDO();
$markList = $markDetail->getProgressFellingDetail($markDetailId);
$markIdDetail = $common->getInfo('c_mark_detail', $markDetailId);
$markIdDetail['0']['id'];
$forestDetail = $common->getInfo('m_forest', $markIdDetail['0']['i_forest_id']);
$forestName = $forestDetail['0']['vc_name'];
$forestDFO = $dfoList[$forestDetail['0']['i_department_id']];
$pageKey = "inventoryTimberWiseReport";
$markIdDetailHTML = $markDetail->getMarkIdDetailHTML($markDetailId, $forestDFO . '/' . $forestName);
if (isset($_POST['add_over_head'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=addOverhead&markId={$markDetailId}");
} else {
    if (isset($_POST['add_conversion'])) {
        ob_end_clean();
        header("Location:" . BASE_URL . "index.php?page=addConversion&markId={$markDetailId}");
    }
}
$economicsId = $_REQUEST['i_ecnomics_master_id'];
if ($economicsId == '') {
    $ecmomicsMaster = $common->getEcnomicsMaster($markDetailId);
    $ecnomicsId = $ecmomicsMaster['id'];
} else {
    $ecnomicsId = $economicsId;
}
$timberDO = new TimberDO();
$sgetConvertedTimberDetail = $markDetail->getSoldTimberTypeDetail($markDetailId);
Exemplo n.º 11
0
Arquivo: common.php Projeto: hpie/hpie
 function getVolumeToTransferAjaxRSD($markdId, $treeId, $pointId, $i_timber_id, $i_timbertype_id)
 {
     $markDetail = new MarkDetailDO();
     $progressConversion = $markDetail->getProgressConversionTreeWiseTimberWise($markdId, $i_timber_id, $i_timbertype_id);
     $treeForestVolume = $progressConversion[$treeId];
     if ($pointId == -1) {
         $leftFromForest = $this->getFromForestLeft($markdId, $treeId, $i_timber_id, $i_timbertype_id);
         echo display_float($treeForestVolume['i_count']) - $leftFromForest;
     } else {
         $leftFromForest = $this->getVolumeLeft($markdId, $treeId, $pointId, $i_timber_id, $i_timbertype_id);
         $volumeMoved = $this->getVolumeMoved($markdId, $treeId, $pointId, $i_timber_id, $i_timbertype_id);
         echo $leftFromForest - $volumeMoved;
     }
     $forestIEntryId = array();
     //echo  makeSelectOptions($entryPointList,"fromPoint",$i_contractor_id,"",100,"");
 }
Exemplo n.º 12
0
    echo $detail['dt_created'];
    ?>
  </td>
  <td>
  </td>
   <td class='completeLeft completeRight' colspan="3">
   <td class='completeLeft completeRight' colspan="3">
   <td class='completeLeft completeRight' colspan="3"></td>
 <td class='completeLeft completeRight' colspan="3">
   <td class='completeLeft completeRight' colspan="3">
   <td class='completeLeft completeRight' colspan="3"></td>
 <td class='completeLeft completeRight' colspan="3"></td>
  
  </tr>
	<?php 
    $markDetail = new MarkDetailDO();
    $markedTreeList = $markDetail->getMarkedTreesOnly($key);
    //Block For Fetching Progress Detail
    $fellingCurrent = $markDetail->getProgressFellingTreeWiseYearBased($key, $year, '1');
    $fellingPrevious = $markDetail->getProgressFellingTreeWiseYearBased($key, $year, '-1');
    $conversionCurrent = $markDetail->getConversionTreeWiseYearBased($key, $year, '1');
    $conversionPrevious = $markDetail->getConversionTreeWiseYearBased($key, $year, '-1');
    foreach ($markedTreeList as $treeId => $TreeName) {
        $feelingTotalVolume = 0;
        $feelingTotalCount = 0;
        $royalityVolume;
        $markingEntryTotal = 0;
        $markingEntryVolumeTotal = 0;
        ?>
		<tr class='borderBottomLight'>
		<td colspan="4">
Exemplo n.º 13
0
<?php

$markDetailId = $_GET['markid'];
$treeId = $_GET['treeid'];
$arrTreeTypes = array();
$arrTreeTypes = $common->getTreeType($markDetailId);
$arrMarkedVolume = array();
$i_tree_volume = '';
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getVolumeLevelDetail($markDetailId);
if (isset($_GET['treeid'])) {
    $i_tree_volume = $common->getMarkedVolume($markDetailId, $treeId);
}
if (isset($_POST['update'])) {
    echo 'inside the Post';
    extract($_POST);
    if ($treetype_id != '') {
        $count = 0;
        $arFieldValues['i_mark_id'] = $markDetailId;
        $arFieldValues['i_tree_id'] = $_POST['treetype_id'];
        $arFieldValues['i_tree_volume'] = $_POST['i_tree_volume'];
        $arrCondition = array('i_mark_id' => $markDetailId, 'i_tree_id' => $treetype_id);
        $db->delete('c_marked_opening_volume', $arrCondition);
        $arrCondition = array('i_mark_detail_id' => $markDetailId, 'i_tree_id' => $treetype_id);
        $db->delete('r_tree_opening_category', $arrCondition);
        $arMarkedPrice['i_mark_id'] = $_POST['markid'];
        $arMarkedPrice['i_tree_id'] = $treetype_id;
        $arMarkedPrice['i_value'] = $unitPrice;
        $arMarkedPrice['i_royality_price'] = $royalityPrice;
        $id = $db->insert('c_marked_opening_price', $arMarkedPrice);
        foreach ($catVolume as $key => $value) {
Exemplo n.º 14
0
<?php

$markDetailId = $_GET['markId'];
$markDetail = new MarkDetailDO();
$markList = $markDetail->getMarkDetailSummarryOpening($markDetailId);
$volumneList = $markDetail->getMarkIdOpeningVolumeSummarry($markDetailId);
$royalityList = $markDetail->getRoyalityMarkIdPrice($markDetailId);
$markIdDetail = $common->getInfo('c_mark_detail', $markDetailId);
$markIdDetail['0']['id'];
$forestDetail = $common->getInfo('m_forest', $markIdDetail['0']['i_forest_id']);
$forestName = $forestDetail['0']['vc_name'];
$forestDFO = $dfoList[$forestDetail['0']['i_department_id']];
$markIdDetailHTML = $markDetail->getMarkIdDetailHTML($markDetailId, $forestDFO . '/' . $forestName);
if (isset($_POST['add_over_head'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=addOverhead&markId={$markDetailId}");
} else {
    if (isset($_POST['add_conversion'])) {
        ob_end_clean();
        header("Location:" . BASE_URL . "index.php?page=addConversion&markId={$markDetailId}");
    }
}
?>

<form id="form" action="" method="POST">
<table cellpadding="3px" cellspacing="3px" >
<?php 
if (!isset($markList) || empty($markList)) {
    echo "<tr><td colspan=2 align='center'>No Record Entered";
} else {
    include 'marked_trees_opening.php';
Exemplo n.º 15
0
if (isset($_POST['add_over_head'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=addOverhead&markId={$markDetailId}");
} else {
    if (isset($_POST['add_conversion'])) {
        ob_end_clean();
        header("Location:" . BASE_URL . "index.php?page=addConversion&markId={$markDetailId}");
    }
}
$economicsId = $_REQUEST['i_ecnomics_master_id'];
if ($economicsId == '') {
    $ecmomicsMaster = $common->getEcnomicsMaster($markDetailId);
    $ecnomicsId = $ecmomicsMaster['id'];
} else {
    $ecnomicsId = $economicsId;
}
$timberDO = new TimberDO();
$markDetail = new MarkDetailDO();
$allForestPoints = $common->getAllForestPoints($markDetailId);
$allTransportationDetail = $common->getTransportaionProgressDetail($markDetailId);
$allTransportationInventoryDetail = $common->getTransportaionInventoryDetail($markDetailId);
$exitType = $markDetail->getExitTypes();
printButton('800', 'javascript:window.print()', '10px');
?>
<br>
<table cellpadding="1px" cellspacing="1px" style='width:900px;text-align:center' >
<?php 
include 'inventory/inventoryLocationHTML.php';
?>
</table>
Exemplo n.º 16
0
<?php

$markDetailId = $_REQUEST['markId'];
$treetype_id = $_REQUEST['treeId'];
$progressId = $_REQUEST['progressId'];
${$markDetail} = new MarkDetailDO();
$i_year = date('Y');
$i_month_id = date('m');
$i_contractor_id = $_GET['c_id'];
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getTimberVolummeDetail();
//$markList=$markDetail->getTreeMarkDetail($markDetailId,$treeId);
$applicableMonths = $markDetail->getTransPortationMonth($markDetailId);
$transPortationDetail = $markDetail->getprogressTransportationDetailComplete($progressId);
$overHeadEntry = $common->getOverheadEntity($markDetailId);
$markedTreeList = $markDetail->getProgressTreesOnly($markDetailId);
$progressConversion = $markDetail->getProgressConversionTreeWise($markDetailId);
$allForestPoints = $common->getAllForestPoints($markDetailId);
$allForestPoints1 = array();
$allForestPoints1[-1] = "Forest";
foreach ($allForestPoints as $pointId => $name) {
    $allForestPoints1[$pointId] = $name;
}
$allForestPoints = $allForestPoints1;
foreach ($progressConversion as $tree => $detail) {
    ?>
<input
	type='hidden' value='<?php 
    echo $detail['i_volumne'];
    ?>
'
Exemplo n.º 17
0
$markDetailId = $_REQUEST['markId'];
$treetype_id = $_REQUEST['treeId'];
$progressId = $_REQUEST['progressId'];
$timberDO = new TimberDO();
$timberlist = $timberDO->getTimberList();
$arrAllcontractors = $common->getAllcontractors();
$treeId = $_GET['treeId'];
$timberPreviousValue = array();
$timberPreviousVolume = array();
$timberCurrentValue = array();
$timberCurrentVolume = array();
$markDetail = new MarkDetailDO();
$i_year = date('Y');
$i_month_id = date('m');
$i_contractor_id = $_GET['c_id'];
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getTimberVolummeDetail();
if (isset($_POST['cancel'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=conversionHome&markId=" . $markDetailId);
}
if (isset($_POST['update'])) {
    extract($_POST);
    $timberDetailArray = array();
    $count = 0;
    /**
     * Block Added For checking the condition
     */
    if ($updatePrevious != '0') {
        $existingDetail = 0;
    } else {
Exemplo n.º 18
0
   </td>
  <td class='completeLeft completeRight' colspan="6">
   </td>
   
  <td class='completeLeft completeRight' colspan="2">
   </td>
    <td class='completeLeft completeRight' colspan="6">
   </td>
  <td class='completeLeft completeRight' colspan="6">
   </td>
  <td class='completeLeft completeRight' colspan="2">
   </td>
  
  </tr>
	<?php 
    $markDetail = new MarkDetailDO();
    $markedTreeList = $markDetail->getMarkedTreesOnly($key);
    $markEntryVolume = $markDetail->getMarkIdVolumeSummarry($key);
    $markEntryCount = $markDetail->getMarkIdCountSummarry($key);
    //Block For Fetching Progress Detail
    $fellingCurrent = $markDetail->getProgressFellingTreeWiseYearBased($key, $year, '1');
    $fellingPrevious = $markDetail->getProgressFellingTreeWiseYearBased($key, $year, '-1');
    //$conversionCurrent=$markDetail->getProgressFellingTreeWiseYearBased($key,$year,'1');
    //$conversionPrevious=$markDetail->getProgressFellingTreeWiseYearBased($key,$year,'-1');
    $conversionCurrent = $markDetail->getConversionTreeWiseYearBased($key, $year, '1');
    $conversionPrevious = $markDetail->getConversionTreeWiseYearBased($key, $year, '-1');
    $conversionDetailCurrent = $markDetail->getProgressConversionTreeWiseYearBased($key, $year, '1');
    $conversionDetailPrevious = $markDetail->getProgressConversionTreeWiseYearBased($key, $year, '-1');
    $allForestPoints = $common->getAllForestPoints($key);
    $allForestPoints1 = array();
    $allForestPoints1[-1] = "Forest";
Exemplo n.º 19
0
<?php

$markDetailId = $_GET['markId'];
$progressID = $_GET['progressId'];
$treeId = $_GET['treeid'];
$arrTreeTypes = array();
$arrTreeTypes = $common->getTreeType($markDetailId);
$arrMarkedVolume = array();
$i_tree_volume = '';
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getVolumeLevelDetail($markDetailId);
if (isset($_POST['update'])) {
    extract($_POST);
    $count = 0;
    if ($updatePrevious > 0) {
        $existingDetail = 0;
    } else {
        $arFieldValues['i_mark_id'] = $markDetailId;
        $arFieldValues['i_contractor_id'] = $i_contractor_id;
        $arFieldValues['vc_month'] = $i_month_id;
        $arFieldValues['vc_year'] = $i_year;
        $list = $common->selectCondition('progress_conversion_actual_master', $arFieldValues);
        echo count($list);
        echo '<br>' . $updatePrevious;
        $existingDetail = count($list);
    }
    echo $existingDetail;
    echo '<br>' . $updatePrevious;
    if ($existingDetail > 0 && ($updatePrevious == '' || $updatePrevious == '0')) {
        $errorMsg = "Entry Already Exists for " . $_POST['month'] . "/" . $_POST['year'] . "of this contractor ";
    } else {
Exemplo n.º 20
0
	background-color:#cccccc;
}

.oddrow
{
	background-color:#eeeeee;
}
</style>
<?php 
printButton('800', 'javascript:window.print()', '275px');
echo '<center><h2>Economics Summary Report</h2></center>';
$selectList = $common->getEcnomicsDateSelect($markDetailId);
if ($selectList != '') {
    $markDetailId = $_GET['markId'];
    $markTressDetails = $common->getTreeMarked($_GET['markId']);
    $markDetail = new MarkDetailDO();
    $markList = $markDetail->getMarkDetailVolumeSummarry($markDetailId);
    $volumneList = $markDetail->getMarkIdVolumeDetail($markDetailId);
    $markIdDetail = $common->getInfo('c_mark_detail', $markDetailId);
    $priceMaster = $markDetail->getPriceMaster($markIdDetail['0']['i_forest_id']);
    $markIdDetail['0']['id'];
    $forestDetail = $common->getInfo('m_forest', $markIdDetail['0']['i_forest_id']);
    $forestName = $forestDetail['0']['vc_name'];
    $forestDFO = $dfoList[$forestDetail['0']['i_department_id']];
    $markIdDetailHTML = $markDetail->getMarkIdDetailHTML($markDetailId, $forestDFO . '/' . $forestName);
    $prevTimberSummary = $markDetail->getprevTimberSum($_GET['markId']);
    echo $markIdDetailHTML;
    $totalArray = array();
    if (!isset($markList) || empty($markList)) {
        echo "<tr><td colspan=2 align='center'>No Record Entered";
    } else {
Exemplo n.º 21
0
function getUserPendingDetails($id)
{
    $markDetailDo = new MarkDetailDO();
    $list = $markDetailDo->getMarkDetailUser($id);
    $coonversionPending = 0;
    $overheadePending = 0;
    $statusString = '';
    foreach ($list as $detail) {
        $coonversionPendingHTML = "Pending";
        $overheadePendingHTML = "Pending";
        if ($detail->i_conversion_status == 1) {
            $coonversionPending = 0;
            $coonversionPendingHTML = "Done";
        }
        if ($detail->i_overhead_status == 1) {
            $overheadePending = 0;
            $overheadePendingHTML = "Done";
        }
        if ($coonversionPending == 0 && $overheadePending == 0) {
            //both Pending
            $statusString .= '<tr><td><a href="index.php?page=markCompleteDetail&markId=' . $detail->id . '">Lot-' . $detail->id . '</a></td><td><a href="index.php?page=addConversion&markId=' . $detail->id . '">' . $coonversionPendingHTML . '</a></td><td><a href="index.php?page=addOverhead&markId=' . $detail->id . '">' . $overheadePendingHTML . '</a></td></tr>';
        } else {
            if ($coonversionPending == 0) {
                //conversion pending
                $statusString .= '<tr><td>Lot-' . $detail->id . '</td><td>Pending</td><td>Done</td></tr>';
            } else {
                if ($overheadePending == 0) {
                    //conversion pending
                    $statusString .= '<tr><td>Lot-' . $detail->id . '</td><td>Done</td><td>Pending</td></tr>';
                }
            }
        }
    }
    if ($statusString != '') {
        $statusString = "<table><tr><td>Lot-No</td><td>Filling/Con Entry</td><td>Over Head Entry</td></tr>" . $statusString . '</table>';
    }
    return $statusString;
}
Exemplo n.º 22
0
    <td class='completeLeft completeRight' colspan="3">
   </td>
   <td class='completeLeft completeRight' colspan="3">
   </td>
   <td class='completeLeft completeRight' colspan="1">
   </td>
   <td class='completeLeft completeRight' colspan="3">
    <td class='completeLeft completeRight' colspan="3">
     <td class='completeLeft completeRight' colspan="3"></td>
  <td class='completeLeft completeRight' colspan="2">
   </td>

  
  </tr>
	<?php 
    $markDetail = new MarkDetailDO();
    $markedTreeList = $markDetail->getMarkedTreesOnly($key);
    $markEntryVolume = $markDetail->getMarkIdVolumeSummarry($key, $year);
    $markEntryVolumeOpening = $markDetail->getMarkIdVolumeSummarryOpening($key, $year);
    $markEntryCount = $markDetail->getMarkIdCountSummarry($key, $year);
    $markEntryCountOpening = $markDetail->getMarkIdCountSummarryOpening($key, $year);
    //Block For Fetching Progress Detail
    $fellingCurrent = $markDetail->getProgressFellingTreeWiseYearBased($key, $year, '1');
    $fellingPrevious = $markDetail->getProgressFellingTreeWiseYearBased($key, $year, '-1');
    foreach ($markedTreeList as $treeId => $TreeName) {
        $feelingTotalVolume = 0;
        $feelingTotalCount = 0;
        $royalityVolume;
        $markingEntryTotal = 0;
        $markingEntryVolumeTotal = 0;
        ?>
Exemplo n.º 23
0
<?php

$markDetailId = $_GET['markId'];
$markTressDetails = $common->getTreeMarked($_GET['markId']);
$markDetail = new MarkDetailDO();
$markList = $markDetail->getInventoryMasterDetail($markDetailId);
$markIdDetail = $common->getInfo('c_mark_detail', $markDetailId);
$markIdDetail['0']['id'];
$forestDetail = $common->getInfo('m_forest', $markIdDetail['0']['i_forest_id']);
$forestName = $forestDetail['0']['vc_name'];
$forestDFO = $dfoList[$forestDetail['0']['i_department_id']];
$markIdDetailHTML = $markDetail->getMarkIdDetailHTML($markDetailId, $forestDFO . '/' . $forestName);
?>

<form id="form" action="" method="POST">
<table cellpadding="3px" cellspacing="3px" style='width:600px;' >
<?php 
include 'inventory/inventoryHomeHtml.php';
?>
</table>
Exemplo n.º 24
0
$markDetailId = $_REQUEST['markId'];
$treetype_id = $_REQUEST['treeId'];
$progressId = $_REQUEST['progressId'];
$timberDO = new TimberDO();
$timberlist = $timberDO->getTimberList();
$arrAllcontractors = $common->getAllcontractors();
$treeId = $_GET['treeId'];
$timberPreviousValue = array();
$timberPreviousVolume = array();
$timberCurrentValue = array();
$timberCurrentVolume = array();
$markDetail = new MarkDetailDO();
$i_year = date('Y');
$i_month_id = date('m');
$i_contractor_id = $_GET['c_id'];
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getTimberVolummeDetail();
if (isset($_POST['cancel'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=conversionHome&markId=" . $markDetailId);
}
if (isset($_POST['update'])) {
    extract($_POST);
    $timberDetailArray = array();
    $count = 0;
    /**
     * Block Added For checking the condition
     */
    if ($updatePrevious > 0) {
        $existingDetail = 0;
    } else {
Exemplo n.º 25
0
<?php

$markDetailId = $_GET['markId'];
$markTressDetails = $common->getTreeMarked($_GET['markId']);
$markDetail = new MarkDetailDO();
$markList = $markDetail->getProgressFellingDetailOpening($markDetailId);
$markIdDetail = $common->getInfo('c_mark_detail', $markDetailId);
$markIdDetail['0']['id'];
$forestDetail = $common->getInfo('m_forest', $markIdDetail['0']['i_forest_id']);
$forestName = $forestDetail['0']['vc_name'];
$forestDFO = $dfoList[$forestDetail['0']['i_department_id']];
$markIdDetailHTML = $markDetail->getMarkIdDetailHTML($markDetailId, $forestDFO . '/' . $forestName);
if (isset($_POST['add_over_head'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=addOverhead&markId={$markDetailId}");
} else {
    if (isset($_POST['add_conversion'])) {
        ob_end_clean();
        header("Location:" . BASE_URL . "index.php?page=addConversion&markId={$markDetailId}");
    }
}
?>

<form id="form" action="" method="POST">
<table cellpadding="3px" cellspacing="3px" style='width:600px;' >
<?php 
include 'opening/fellingHomeHtml.php';
?>


</table>
Exemplo n.º 26
0
$timberlist = $timberDO->getTimberList();
$arrAllcontractors = $common->getAllcontractors();
$allForestPoints = $common->getAllForestPoints($markDetailId);
$treeId = $_GET['treeId'];
$timberPreviousValue = array();
$timberPreviousVolume = array();
$timberCurrentValue = array();
$timberCurrentVolume = array();
$treeFillingArray = getArrayFromSession('treeFillingArray');
$pre_vol = $treeFillingArray[$treeId]->previousVolume;
$cur_vol = $treeFillingArray[$treeId]->currentVolume;
$markDetail = new MarkDetailDO();
$i_year = date('Y');
$i_month_id = date('m');
$i_contractor_id = $_GET['c_id'];
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getTimberVolummeDetail();
if (isset($_POST['cancel'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=conversionHome&markId=" . $markDetailId);
}
//$markList=$markDetail->getTreeMarkDetail($markDetailId,$treeId);
if ($progressId != '') {
    $arFieldValues['id'] = $progressId;
    $progressMasterDetail = $common->selectCondition('progress_transportation_master', $arFieldValues);
    $i_contractor_id = $progressMasterDetail[0]['i_contractor_id'];
    $i_month_id = $progressMasterDetail[0]['vc_month'];
    $i_year = $progressMasterDetail[0]['vc_year'];
    $preViousTimbedetail = $markDetail->getprogressConversionDetail($progressId);
    $transPortationDetail = $markDetail->getprogressTransportationDetailComplete($progressId);
}
Exemplo n.º 27
0
<?php

$markDetailId = $_GET['markId'];
$markTressDetails = $common->getTreeMarked($_GET['markId']);
$markDetail = new MarkDetailDO();
$markList = $markDetail->getProgressConversionMasterVolumeDetail($markDetailId);
$markIdDetail = $common->getInfo('c_mark_detail', $markDetailId);
$markIdDetail['0']['id'];
$forestDetail = $common->getInfo('m_forest', $markIdDetail['0']['i_forest_id']);
$forestName = $forestDetail['0']['vc_name'];
$forestDFO = $dfoList[$forestDetail['0']['i_department_id']];
$markIdDetailHTML = $markDetail->getMarkIdDetailHTML($markDetailId, $forestDFO . '/' . $forestName);
?>

<form id="form" action="" method="POST">
<table cellpadding="3px" cellspacing="3px" style='width:600px;' >
<?php 
include 'progress/conversionHomeVolumeDetailHTML.php';
?>
</table>
Exemplo n.º 28
0
$timberDO = new TimberDO();
$timberlist = $timberDO->getTimberList();
$arrAllcontractors = $common->getAllcontractors();
$treeId = $_GET['treeId'];
$timberPreviousValue = array();
$timberPreviousVolume = array();
$timberCurrentValue = array();
$timberCurrentVolume = array();
$treeFillingArray = getArrayFromSession('treeFillingArray');
$pre_vol = $treeFillingArray[$treeId]->previousVolume;
$cur_vol = $treeFillingArray[$treeId]->currentVolume;
$markDetail = new MarkDetailDO();
$i_year = date('Y');
$i_month_id = date('m');
$i_contractor_id = $_GET['c_id'];
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getTimberVolummeDetail();
if (isset($_POST['cancel'])) {
    ob_end_clean();
    header("Location:" . BASE_URL . "index.php?page=conversionHome&markId=" . $markDetailId);
}
if (isset($_POST['update'])) {
    extract($_POST);
    $timberDetailArray = array();
    $count = 0;
    /**
     * Block Added For checking the condition
     */
    if ($updatePrevious != '0') {
        $existingDetail = 0;
    } else {
Exemplo n.º 29
0
                $totalVolume += $volume[$timber][$index];
                $id = $db->insert('ecnomics_conversion_detail', $c_tree_filling_detail);
            }
        }
    }
    ////	$common->insertDefaultEcnomicsConversion($forestID, $markDetailId, $ecnomicsId);
    //	$common->insertDefaultEcnomicsProduct($forestID, $markDetailId, $ecnomicsId);
    //$common->insertDefaultEcnomicsOverHeadCharges($forestID, $markDetailId, $ecnomicsId);
    //$common->insertDefaultEcnomicsCharges($forestID, $markDetailId, $ecnomicsId);
    $common->updateEcmonicsDetails($markDetailId);
    ob_end_clean();
    header("location:indexThickBox.php?page=addScheduleRate&markId=" . $_REQUEST['markId']);
}
$timberDO = new TimberDO();
$timberlist = $timberDO->getTimberList();
$markDetail = new MarkDetailDO();
$volumeTableDetail = $markDetail->getTimberVolummeDetail();
$markedTreeList = $markDetail->getMarkedTreesOnly($markDetailId);
$ecmomicsMaster = $common->getEcnomicsMaster($markDetailId);
$ecnomicsId = $ecmomicsMaster['id'];
$common->extractTempDataEconimics('ecnomics_category_timber_temp', 'ecnomics_category_timber', "where i_ecnomics_master_id='" . $ecnomicsId . "'", $ecnomicsId);
$preViousTimbedetail = $markDetail->getEcnomicsConDetail($ecnomicsId);
//include('header.php');
?>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Screens</title>

<link rel="stylesheet" type="text/css" media="all"
	href="css/jsDatePick_ltr.min.css" />
Exemplo n.º 30
0
             $treeMark->treetype_id = $treetype_id;
             $markDetaiArray[$k][$catList[$key]->id] = $treeMark;
         }
     }
     $markTressDetails = getArrayFromSession('markTressDetails');
     if (isset($markTressDetails) && !empty($markTressDetails)) {
         $markTressDetails[$treetype_id] = $markDetaiArray;
         $_SESSION['markTressDetails'] = serialize($markTressDetails);
     } else {
         $markTressDetails = array();
         $markTressDetails[$treetype_id] = $markDetaiArray;
         $_SESSION['markTressDetails'] = serialize($markTressDetails);
     }
     $markTressDetails = (array) unserialize($_SESSION['markTressDetails']);
 }
 $markDetailDO = new MarkDetailDO();
 foreach ($markTressDetails as $tree => $v) {
     foreach ($v as $ttype => $detail) {
         /*
         		echo '<pre>';
         	   print_R($detail);
         	   echo '</pre>';*/
         if (isset($detail)) {
             foreach ($detail as $key) {
                 $treeCategoryRelation = new TreeCategoryVO();
                 $treeCategoryRelation->i_category_id = $key->categoryId;
                 $treeCategoryRelation->i_mark_detail_id = $mardDetail->id;
                 $treeCategoryRelation->i_tree_id = $treetype_id;
                 $treeCategoryRelation->i_tree_type_id = $ttype;
                 $treeCategoryRelation->i_value = $key->categoryValue;
                 $markDetailDO->insertTreeCategoryDetail($treeCategoryRelation);