<?php

if (empty($$class->prj_percent_header_id) && !empty($_GET['prj_project_header_id'])) {
 $$class = prj_percent_all_v::find_by_projectHeaderId($_GET['prj_project_header_id']);
 $prj_percent_line_v_object = prj_percent_line_v::find_by_projectHeaderId($_GET['prj_project_header_id']);
} else if (!empty($$class->prj_percent_header_id) && empty($_GET['prj_project_header_id'])) {
 $prj_percent_line_v_object = prj_percent_line_v::find_by_projectHeaderId($$class->prj_project_header_id);
} else {
 $$class->project_description = $$class->project_number = null;
}

if (!empty($$class->prj_project_header_id) && empty($$class->project_number)) {
 $project_i = prj_project_header::find_by_id($$class->prj_project_header_id);
 $$class->project_number = $project_i->project_number;
 $$class->project_description = $project_i->description;
}

if(!empty($$class->prj_project_header_id)){
 $revision_obj = prj_percent_headerrev::find_by_projectHeaderId($$class->prj_project_header_id);
}else{
 $revision_obj = [new prj_percent_headerrev()];
}

?>
