<?php
require_once (PATH_TABLES . "activity/salesquotation/SalesQuotationProjectPlanTemplateTable.php") ;
require_once (PATH_TABLES . "activity/salesquotation/SalesQuotationProjectPlanHeaderTemplateTable.php") ;
require_once (PATH_TABLES . "activity/salesquotation/SalesQuotationProjectPlanDetailTemplateTable.php") ;
require_once (PATH_MODELS . "base/MasterBase.php") ;

class SalesQuotationProjectPlanHeaderTemplateClass extends MasterBase {
	function __construct($db) {
		$this->db 		= $db ;
		$this->tbl 		= SalesQuotationProjectPlanHeaderTemplateTable::C_TABLE ;
		$this->fldid 	= SalesQuotationProjectPlanHeaderTemplateTable::C_QUOTATION_ID ;
	}

	function __destruct() {
	}

	// function getSalesQuotationProjectPlanHeaderTemplate($id){

    //     $sql = "SELECT * FROM " ;
    //     $sql .= SalesQuotationProjectPlanHeaderTemplateTable::C_TABLE . " WHERE " . SalesQuotationProjectPlanHeaderTemplateTable::C_QUOTATION_ID . " = " . $id;
    //     $sql .= "ORDER BY " . SalesQuotationProjectPlanHeaderTemplateTable::C_QUOTATION_ID ." ASC";
        
    //     $rows = $this->db->getTable($sql);

    //     if(!is_null($rows) && count($rows) > 0){
    //         return $rows;
    //     }
        
    //     return null;
    // }

    // function deleteTask($id)
    // {
    //     Log::write(print_r($id,true));
    //     $sql = "DELETE FROM " . SalesQuotationProjectPlanHeaderTemplateTable::C_TABLE . 
    //             " WHERE " . SalesQuotationProjectPlanHeaderTemplateTable::C_QUOTATION_ID . " = " . $id. "";
        
    //     try{
    //         $this->db->executeSql($sql);
    //     } catch (Exception $e){
    //         Log::write("[ChecklistDetailClass]" . $e->getMessage());
    //     }
    // }
}
?>