$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; } } //................................... $is_auto_writ = manage_writ::is_auto_writ($exedate, $objWrt->person_type, $writ_id, $writver, $staff_id); if (manage_writ::is_first_writ($writ_id, $writver, $staff_id)) { $is_new_writ = false; $header_is_open = false; $is_auto_writ = true; } $is_new_writ = manage_writ::is_new_writ($exedate, $objPerson->person_type, $writ_id, $writver, $staff_id); $header_is_open = $is_new_writ ? "false" : "true"; if (manage_writ::check_for_use_in_pay_calc($writ_id, $writver, $staff_id) == null) { $salary_fields_is_open = true; } $time_limited = $FullWrt[0]['time_limited']; //$drp_MaritalStatus = manage_domains::DRP_MaritalStatus("marital_status",$objWrt->marital_status); //$drp_educ = manage_domains::DRP_EducLevel("education_level",$objWrt->education_level,"with:50%"); //$studyFielsArr = manage_domains::DRP_StudyField_StudyBranch("form_WritForm","sfid", "sbid",$objWrt->sfid, $objWrt->sbid); //$writTypeArr = manage_domains::DRP_writType_writSubType("form_WritForm", "writ_type_id", "writ_subtype_id",$objWrt->writ_type_id ,$objWrt->writ_subtype_id); $drp_salary_pay_proc = manage_domains::DRP_SalaryPayProc("salary_pay_proc", $objWrt->salary_pay_proc, "with:50%");