} $fullInfo = manage_person::GetAllPersons("p.PersonID=:pid", array(":pid" => $objPerson->PersonID)); //............................................ if (isset($_REQUEST["ExeDate"])) { $exedate = $_REQUEST["ExeDate"]; } else { $exedate = $FullWrt[0]['execute_date']; } //............................................ $state = $FullWrt[0]["state"]; //............................................ $readOnly = false; $state = manage_writ::get_writ_state($_REQUEST["WID"], $writver, $_REQUEST["STID"]); $pay_calc = manage_writ::check_for_use_in_pay_calc($_REQUEST["WID"], $writver, $_REQUEST["STID"]); if ($pay_calc == null) { if ($state == WRIT_PERSONAL && ($objWrt->check_corrective_state() == 'NOT_CORRECTING' || $objWrt->writ_has_new_version())) { ExceptionHandler::PushException('اين حکم در صدور حکم اصلاحي استفاده شده است و امکان تغيير آن وجود ندارد', ExceptionHandler::ExceptionType_warning); $readOnly = true; } else { if ($state != WRIT_PERSONAL) { ExceptionHandler::PushException("این حکم منتقل شده است و امکان ویرایش آن وجود ندارد", ExceptionHandler::ExceptionType_warning); $readOnly = true; } } } else { if ($pay_calc != null && $state != WRIT_PERSONAL) { ExceptionHandler::PushException(" این حکم در محاسبه حقوق" . " " . $pay_calc . " " . "استفاده شده است و امکان ویرایش آن وجود ندارد.", ExceptionHandler::ExceptionType_warning); $readOnly = true; } } //...................................
$objPerson = new manage_person($_REQUEST["PID"]); } $fullInfo = manage_person::GetAllPersons("p.PersonID=:pid", array(":pid" => $objPerson->PersonID)); //............................................ if (isset($_REQUEST["ExeDate"])) { $exedate = $_REQUEST["ExeDate"]; } else { $exedate = $FullWrt[0]['execute_date']; } //............................................ $state = $FullWrt[0]["state"]; //............................................ $readOnly = false; $state = manage_writ::get_writ_state($_REQUEST["WID"], $writver, $_REQUEST["STID"]); if ($state == WRIT_PERSONAL) { if ($objWrt->check_corrective_state() == 'NOT_CORRECTING' || $objWrt->writ_has_new_version()) { ExceptionHandler::PushException('اين حکم در صدور حکم اصلاحي استفاده شده است و امکان تغيير آن وجود ندارد', ExceptionHandler::ExceptionType_warning); $readOnly = true; } } else { $pay_calc = manage_writ::check_for_use_in_pay_calc($_REQUEST["WID"], $writver, $_REQUEST["STID"]); if ($pay_calc == null) { ExceptionHandler::PushException("این حکم منتقل شده است و امکان ویرایش آن وجود ندارد", ExceptionHandler::ExceptionType_warning); $readOnly = true; } else { ExceptionHandler::PushException(" این حکم در محاسبه حقوق" . " " . $pay_calc . " " . "استفاده شده است و امکان ویرایش آن وجود ندارد.", ExceptionHandler::ExceptionType_warning); $readOnly = true; } } //................................... //echo PdoDataAccess::GetLatestQueryString(); die();