//--------------------------- // programmer: Mahdipour // create Date: 94.11 //--------------------------- require_once "../../../header.inc.php"; require_once "../data/person.data.php"; require_once '../../staff/class/staff.class.php'; //require_once '../../staff/class/staff_detasils.php'; //require_once ("../../../organization/org_units/unit.class.php"); require_once inc_dataGrid; //----------------------------------------------- $personID = !empty($_POST["Q0"]) ? $_POST["Q0"] : ""; $FacilID = isset($_POST["MenuID"]) ? $_POST["MenuID"] : ""; if (!empty($personID)) { $obj = manage_person::SearchPerson($personID); $SummeryInfo = manage_person::GetAllPersons("p.personid = :PID ", array(":PID" => $personID)); $staffInfo = new manage_staff("", "", $SummeryInfo[0]["staff_id"]); } else { $SummeryInfo[0]['FacCode'] = NULL; $SummeryInfo[0]['EduGrpCode'] = NULL; $SummeryInfo[0]['ProCode'] = NULL; $obj = new manage_person(); $staffInfo = new manage_staff(); } //-------------------------------------------------------------------- $drp_issue_countries = manage_domains::DRP_Countries("country_id", "", $obj->country_id, "", "70"); $drp_nationality = manage_domains::DRP_Countries("nationality", "", $obj->nationality, "", "157"); $drp_banks = manage_domains::DRP_banks("bank_id", $staffInfo->bank_id, "width:150 px", "-"); $dg = new sadaf_datagrid("includeHistory", $js_prefix_address . "../../staff/data/staff_include_history.data.php?task=selectIncludeHistory&PID=" . $personID, "includeHistoryGRID"); $dg->addColumn("", "include_history_id", "", true); $dg->addColumn("", "personid", "", true);
<?php //--------------------------- // programmer: Mahdipour // create Date: 94.12 //--------------------------- require_once "../../../header.inc.php"; require_once "../class/person.class.php"; $Image = manage_person::GetPersonPicture($_GET["PersonID"]); header('Content-disposition: filename=test.jpg'); header('Content-type: image/jpg'); header('Pragma: no-cache'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header("Content-Transfer-Encoding: binary"); echo $Image; die;
function changePT() { $PersonID = $_POST["PersonID"]; $new_person_type = $_POST["new_person_type"]; $NID = $_POST["NationalCode"]; $obj = new manage_person(); $obj->PersonID = $PersonID; $obj->person_type = $new_person_type; $obj->national_code = $NID; $staffObject = new manage_staff($PersonID, $_POST["old_person_type"]); unset($staffObject->staff_id); $staffObject->person_type = $new_person_type; $staffObject->AddStaff(); $return = $obj->EditPerson(null, null); echo $return ? Response::createObjectiveResponse(true, $PersonID) : Response::createObjectiveResponse(false, ExceptionHandler::GetExceptionsToString("\n")); die; }
$FullWrt = NULL; } } //............................................ if ($objWrt->corrective && $objWrt->history_only != 0) { $is_new_corrective = true; } else { $is_new_corrective = false; } //............................................ if (empty($_REQUEST["PID"])) { $objPerson = new manage_person("", $staff_id); } else { $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"]); $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);