include("jqModalDialog.html");
?>
if (!$HIDE_HEADER) { ?>
} ?>
send_cmd($cmd);
$data = $db_dpis->get_array();
$cnt21 = trim($data[CNT21]);
/*ตรวจสอบคะแนนจากส่วนที่ 2.2*/
$cmd22 = "select count(*) AS CNT22
from PER_KPI_COMPETENCE a, PER_COMPETENCE b
where (a.KC_EVALUATE is null or a.KC_WEIGHT is null) and a.KF_ID=$KF_ID and a.CP_CODE=b.CP_CODE(+) and b.DEPARTMENT_ID=$DEPARTMENT_ID
order by a.CP_CODE";
$db_dpis->send_cmd($cmd22);
$data22 = $db_dpis->get_array();
$cnt22 = trim($data22[CNT22]);
/**/
if( !empty($cnt21) || !empty($cnt22) ){
?>