<?php
require_once (PATH_TABLES . "activity/salesquotation/SalesQuotationMaintenanceTemplateTable.php") ;
require_once (PATH_TABLES . "activity/salesquotation/SalesQuotationMaintenanceHeaderTemplateTable.php") ;
require_once (PATH_TABLES . "activity/salesquotation/SalesQuotationMaintenanceDetailTemplateTable.php") ;
require_once (PATH_MODELS . "base/MasterBase.php") ;

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

	function __destruct() {
	}

	// function getSalesQuotationMaintenanceHeaderTemplate($id){

    //     $sql = "SELECT * FROM " ;
    //     $sql .= SalesQuotationMaintenanceHeaderTemplateTable::C_TABLE . " WHERE " . SalesQuotationMaintenanceHeaderTemplateTable::C_QUOTATION_ID . " = " . $id;
    //     $sql .= "ORDER BY " . SalesQuotationMaintenanceHeaderTemplateTable::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 " . SalesQuotationMaintenanceHeaderTemplateTable::C_TABLE . 
    //             " WHERE " . SalesQuotationMaintenanceHeaderTemplateTable::C_QUOTATION_ID . " = " . $id. "";
        
    //     try{
    //         $this->db->executeSql($sql);
    //     } catch (Exception $e){
    //         Log::write("[ChecklistDetailClass]" . $e->getMessage());
    //     }
    // }
}
?>