示例#1
0
$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);
$col = $dg->addColumn("شماره شناسایی", "staff_id", "int");
$col->width = 140;
$col = $dg->addColumn("تاريخ شروع", "start_date", GridColumn::ColumnType_date);
$col->editor = ColumnEditor::SHDateField();
$col->width = 120;
$col = $dg->addColumn("تاريخ پايان", "end_date", GridColumn::ColumnType_date);
$col->editor = ColumnEditor::SHDateField(true);
$col->width = 120;
$col = $dg->addColumn("بيمه تامين اجتماعي", "insure_include", GridColumn::ColumnType_string);
$col->editor = ColumnEditor::ComboBox(manage_domains::DRP_Is_Valid(), "value", "caption");
$col->width = 120;